White House reaches deal with Republicans to avert US debt default