A total of 63 senators from both parties passed legislation aimed at preventing the world's largest economy from defaulting days ahead of the deadline. Biden, who has negotiated for a long time with Republican leadership, will sign the bill.

Many in both parties were critical of the agreement, with 36 senators voting against it. The legislation eventually passed with the support of 44 Democratic and 17 Republican senators, plus two independent senators — three more than the required majority. Democrats have a slim majority in the Senate, which has 11 lawmakers, including a tie-breaking vote from Vice President Kamala Harris.