President Joe Biden has said raising the US borrowing limit averted "economic collapse", in his first Oval Office address to the nation.
He pledged to sign the bill into law on Saturday after it cruised through Congress with bipartisan support.
The Democratic president voiced rare praise for his Republican counterparts, saying they "operated in good faith".
He said a US default on its $31.4tn (£25tn) debt by Monday's deadline would have been "catastrophic".
Speeches to the nation from the Oval Office are typically reserved for major crises, such as war or natural disasters.
The White House said Mr Biden's decision to make his remarks there underscored the gravity of the situation if the debt ceiling had not been raised at the last minute.
For weeks the White House and Republicans debated details of a deal, and there was scepticism about whether the package would actually be finalised before the US government ran out of money on 5 June.
The bill passed 63-36 in the Senate on Thursday night, a day after it easily cleared the House of Representatives.
The president praised congressional leaders, including Republican Speaker of the House Kevin McCarthy and Republican Senate leader Mitch McConnell.
"They acted responsibly, and put the good of the country ahead of politics," said Mr Biden, who is running for re-election in 2024.
The deal suspends the debt limit until 1 January 2025 and caps non-defence spending, while expanding work requirements for food and healthcare assistance, amongst other provisions.
Full funding for the medical care of military veterans would also increase, in line with what President Biden had sought.
The legislation will result in $1.5tn in savings over a decade, the independent Congressional Budget Office said on Tuesday.
Though it was largely a bipartisan bill, there were Republicans who said the deal did not go far enough with cuts while some Democrats said it went too far.
Latest Stories
-
IMF Deputy Chief worried large chunk of Eurobonds is used to service debt
15 mins -
Otumfuo Osei Tutu II celebrates 25 years of peaceful rule on golden stool
18 mins -
We have enough funds to pay accruing benefits; we’ve never missed pension payment since 1991 – SSNIT
43 mins -
Let’s embrace shared vision and propel National Banking College – First Deputy Governor
1 hour -
Liverpool agree compensation deal with Feyenoord for Slot
1 hour -
Ejisu by-election: There’s no evidence of NPP engaging in vote-buying – Ahiagbah
2 hours -
Ejisu by-election: Independent ex-NPP MP’s campaign team warns party against dubious tactics
2 hours -
ZEN Petroleum supports Tse-Addo Future Leaders School
3 hours -
NPP must win back Adentan seat in 2024 polls – Obeng Fosu
3 hours -
PPA Clarification: The dark side of the World Bank’s ‘giveaways’ in Ghana by Bright Simons
4 hours -
Blinken says China helping fuel Russian threat to Ukraine
5 hours -
MHA declares May as Purple Month for Mental Health Awareness
5 hours -
WAEC arrests former headmaster over illegal students registration
5 hours -
MeToo founder Tarana Burke defiant after Harvey Weinstein ruling
5 hours -
Be alert, insist on decent messages – Dwumfour tells media
6 hours