Obama signs debt deal to avert default