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
-
Expansion Drive: Takoradi Technical University increases faculties
3 hours -
SHS heads demand payment of outstanding funds before reopening of schools
3 hours -
We thank God for the 2024 general elections – Akufo-Addo
4 hours -
Coconut Grove Beach Resort marks 30 years of excellence with memorable 9 lessons & carols service
4 hours -
WAFU B U-17 Girls’ Cup: Black Maidens beat Nigeria on penalties to win inaugral tournament
5 hours -
Real Madrid beat Sevilla to keep pressure on leaders Atletico
6 hours -
Liverpool put six past Spurs to go four points clear
6 hours -
Manchester United lose 3-0 at home to Bournemouth yet again
6 hours -
CHAN 2024Q: ‘It’s still an open game’ – Didi on Ghana’s draw with Nigeria
6 hours -
CHAN 2024Q: Ghana’s Black Galaxies held by Nigeria in first-leg tie
7 hours -
Dr Nduom hopeful defunct GN bank will be restored under Mahama administration
7 hours -
Bridget Bonnie celebrates NDC Victory, champions hope for women and youth
7 hours -
Shamima Muslim urges youth to lead Ghana’s renewal at 18Plus4NDC anniversary
8 hours -
Akufo-Addo condemns post-election violence, blames NDC
9 hours -
DAMC, Free Food Company, to distribute 10,000 packs of food to street kids
10 hours