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
-
Dr Chambas urges African nations to push for single currency
3 mins -
‘You have supervised Ghana’s worst spell in 5 years, just step down’ – Veronica Commey to GFA president
25 mins -
‘Emotions will be for the end’ – Nadal
1 hour -
NYC politicians call on Whoopi Goldberg to apologize for saying bakery denied order over politics
1 hour -
Mali wins $160m in gold mining dispute after detaining British businessman
2 hours -
Bawumia: From political outsider to Ghana’s ‘Mr Digital’
2 hours -
What is Payments Tokenisation?
2 hours -
South Africa’s MTN exploring partnerships with satellite-internet providers
2 hours -
Senegal’s president faces budget challenge after likely parliamentary win
2 hours -
Plastic waste chokes Congo dam, causing widespread power cuts
2 hours -
Nigeria begins delayed mpox vaccination programme
3 hours -
Nigeria and India agree deeper ties in maritime security, counter-terrorism
3 hours -
From Awareness to Action: Hijaz Islamic School students trained on Gender-Based Violence
3 hours -
TikToker jailed for 32 months for insulting Uganda’s president
3 hours -
Moscow warns the US over allowing Ukraine to hit Russian soil with longer-range weapons
3 hours