The dollar rose against a basket of major currencies on Friday, heading for its first weekly gain in five, as optimism grew that the U.S. Congress will reach agreement on a stop-gap deal to avert a devastating U.S. default.

President Barack Obama and congressional Republican leaders moved to end their fiscal impasse on Friday but struggled with the details for a short-term reopening of the federal government and an increase in the U.S. borrowing limit.