Edwards agrees to July 31 end to federal unemployment aid