The House of Representatives has approved a deal to allow the US to borrow more money, days before the world's biggest economy is due to start defaulting on its debt.
The measure easily passed the chamber by a vote of 314-117, despite some defections on both sides of the aisle.
The US Senate must vote on the bill later this week before President Joe Biden can sign it into law.
The government is forecast to hit its borrowing limit on Monday 5 June.
That has left little margin for error as lawmakers race to avoid the US defaulting on its $31.4tn (£25tn) debt, which underpins the global financial system.
On Wednesday evening, 165 Democrats joined 149 Republicans in approving the 99-page bill to raise the debt ceiling, allowing it to pass the House by the required simple majority.
With Republicans in control of the lower chamber of Congress and Democrats holding sway in the upper chamber and White House, a deal had proven elusive for weeks until President Biden and House Speaker Kevin McCarthy inked a bipartisan compromise over the weekend.
In a statement, Mr Biden thanked the Speaker, saying he had negotiated in good faith.
"Neither side got everything it wanted," said the president. "That's the responsibility of governing."
The agreement suspends the debt ceiling until 1 January 2025.
The legislation would result in $1.5tn in savings over a decade, the non-partisan Congressional Budget Office said on Tuesday.
But the bill's passage had been in jeopardy after lawmakers from both parties voiced opposition.
Ultra-conservative Republicans complained they had secured too few concessions in exchange for raising the debt limit.
Democrats objected to provisions raising work requirements for Americans on federal food aid, and restarting student loan repayments.
Emanuel Cleaver, a Missouri Democrat, said he would vote for the bill, even though he viewed it as the "second serving of Satan's sandwiches".
The leader of the House Democrats, Hakeem Jeffries, said his party had politically bailed out the Republican Speaker.
"Once again, House Democrats to the rescue to avoid a dangerous default," said the New York congressman.
Eli Crane, an Arizona Republican who had vowed to stop the bill, tweeted: "More Democrats voted for this 'historic conservative victory' than Republicans.
"What a joke."
Republicans control the House by a narrow 222-213 majority, but Speaker McCarthy was able to push the bill over the line with support from political centrists on both sides of the aisle.
He framed the package as "the biggest cut and savings this Congress has ever voted for".
The bill is not yet assured of passage. It now heads to the Senate, where some combination of Democratic and Republican votes may again be needed.
One conservative Republican, Mike Lee of Utah, has already threatened to use "every procedural tool" to stall consideration of the deal.
Left-wing Senator Bernie Sanders also came out against the bill on Wednesday, saying he cannot "in good conscience" support it.
Both Democratic and Republican leaders in the Senate are working to ensure that a bill reaches Mr Biden's desk for his signature this weekend before a default can occur.
The last time the US came this close to overshooting its debt ceiling, in 2011, the credit agency Standard & Poor's downgraded the country's rating, a move that has yet to be reversed.
Before Wednesday's vote, US stock markets ended the day down a little, with the Dow closing 0.4% lower, while the S&P and Nasdaq both dipped by 0.6%.
Latest Stories
-
Let’s prioritize research quality in higher education institutions for industrial growth-Prof. Nathaniel Boso
18 mins -
Herman Suede is set to release ‘How Dare You’ on April 24
4 hours -
Heal KATH: Kuapa Kokoo, Association of Garages donate 120k to support project
4 hours -
KNUST signs MOU with Valco Trust Fund, Bekwai Municipal Hospital to build student hostel
4 hours -
The influence Ronaldo has on people, Cadman Yamoah will have same on the next generation – Coach Goodwin
5 hours -
Gender Advocate Emelia Naa Ayeley Aryee Wins prestigious Merck Foundation Awards
6 hours -
South Africa bursary scandal suspects granted bail
7 hours -
Ecobank successfully repays $500m Eurobond due April 18
7 hours -
Re: Doe Adjaho, Torgbui Samlafo IV, call for Unity among Paramountcies in Anlo
7 hours -
Extortion and kidnap – a deadly journey across Mexico into the US
7 hours -
Rihanna says fashion has helped her personal ‘rediscovery’ after having children
7 hours -
Development Bank Ghana targets GH¢1bn funding for commercial banks in 2024
7 hours -
Shatta Movement apologises to Ghana Society of the Physically Disabled after backlash
8 hours -
Sammy Gyamfi writes: Tema-Mpakadan Railway Project; A railway line to nowhere
8 hours -
Bright Simons: Is the World Bank saving or harming Ghana?
9 hours