More than 50 House Democrats on Wednesday helped House Speaker Kevin McCarthy advance the debt ceiling deal he reached with President Biden, moving it one step closer to a final vote Wednesday night.

House GOP leaders called up a resolution outlining the terms of debate for legislation implementing the debt ceiling deal; failing to pass this "rule" would have killed the deal.

It quickly became clear that the vote was going to need help from Democrats. Several conservative Republicans voted against it – a rare move, as lawmakers almost always support rules put forward by their party leaders. In the end, 29 GOP lawmakers voted against it, more than enough to sink the resolution without help from Democrats.

But just before the vote closed, 52 House Democrats registered as "yes" votes, and allowed the rule to pass.

DEBT CEILING AGREEMENT IN PRINCIPLE REACHED BETWEEN DEMOCRATS, REPUBLICANS

Joe Biden and Kevin McCarthy

President Joe Biden and House Speaker Kevin McCarthy agreed to a deal to raise the debt limit over the weekend (Getty Images)

The last-minute wave of Democrat votes saved the bill and effectively prevented House GOP dissenters from blocking the deal negotiated by McCarthy and Biden's teams.

The resolution passed in a 241-187 vote, setting up for its likely passage later on Wednesday evening.

As of early on Wednesday evening, there are more than 50 House lawmakers who have said they will vote against the bill. Most on the Republican side are members of the conservative House Freedom Caucus, while progressive Democrats like Reps. Pramila Jayapal, D-Wash., Cori Bush, D-Mo., and Alexandria Ocasio-Cortez, D-N.Y., are also opposing it. 

GOP TOUTS MCCARTHY-BIDEN DEAL AS ‘CONSERVATIVE’ VICTORY AS SOME REPUBLICANS DEFECT

Congressman Chip Roy is pictured on the steps of Capitol Hill

Rep. Chip Roy, R-Texas, is among the conservatives who said they are opposing the bill and voted against the rule (Bill Clark/CQ-Roll Call, Inc via Getty Images)

Support from Democrats came even after Democrat leaders warned that it was up to Republicans to deliver the votes needed to pass the rule.

"The majority is responsible for ensuring the passage of the rule, but we will not allow a default to happen," House Minority Leader Hakeem Jeffries, D-N.Y., told reporters during a press conference.

FOX NEWS POLL: MAJORITY SAYS ONLY INCREASE DEBT CEILING WITH SPENDING CUTS

US House Minority Leader Hakeem Jeffries speaks at a podium with other members of House Democratic leadership standing beside him

US House Minority Leader Hakeem Jeffries indicated earlier in the day that it would be up to Republicans to pass the rule before the final bill vote (SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)

CLICK TO GET THE FOX NEWS APP

Rep. Steny Hoyer, D-Md., the former longtime No. 2 leader for House Democrats, said when asked about the rule vote, "That's their responsibility."

The deal has sparked opposition from both parties. Many Republicans don't think the deal cuts nearly enough spending, while some progressive Democrats are angered that any spending cuts are included at all.