645X363 - Full Sharing - Additional videos are suggested upon completion

President Obama's trade agenda survived a bad scare in the House on Thursday when the GOP rule governing debate for the package narrowly survived a 217-212 vote.

Thirty-four Republicans voted against the rule, while eight Democrats backed it.

A handful of pro-trade Democrats withheld their votes, watching the tally closely from the floor. Then, when it was apparent Republicans would not be able to pass the typically partisan measure on its own, they threw their votes in favor all at once.

The tight vote foreshadows the challenge GOP leaders will face Friday, when the House votes on two critical pieces of Obama’s trade agenda: fast-track authority and a separate bill offering help to workers displaced by trade. 

GOP opposition to the Trade Adjustment Assistance program, as well as to fast-track, led Republicans to oppose their party’s rule.

Votes on House rules are tests of party discipline. Democrats traditionally vote against rules brought up by the House GOP.

House Republicans could only lose 26 of their own for the rule to pass without help from Democrats. Had the rule failed, the House would not have been able to debate and vote on the trade bills.

The eight Democrats who saved the trade package were Reps. Earl BlumenauerEarl BlumenauerWay to go, Ted Poe Lawmakers promote pet adoption at Paws for Luck 10 governors shaping the future of politics MORE (Ore.), Gerry ConnollyGerald (Gerry) Edward ConnollyDem lawmaker: McCabe's firing part of conspiracy to undermine Mueller Dems float revoking congressional medal for Myanmar leader Time for the Pentagon to create a system to better track its spending MORE (Va.), Jim Cooper (Tenn.), Henry Cuellar (Texas), John Delaney (Md.), Eddie Bernice Johnson (Texas), Ron KindRonald (Ron) James KindTop trade Dems hit Trump on tariffs It's time we start using 'The Investing in Opportunity Act' Americans worried about retirement should look to employee ownership MORE (Wis.) and Rick LarsenRichard (Rick) Ray LarsenFive things lawmakers want attached to the trillion funding bill Top trade Dems hit Trump on tariffs Dem rep mocks Trump on military parade: His last one 'not very well attended' MORE (Wash.).

Republicans have repeatedly had problems with controversial legislation under Speaker John BoehnerJohn Andrew Boehner4 reasons Mike Pompeo will succeed at Foggy Bottom The misunderstood reason Congress can’t get its job done GOP sees McCarthy moving up — if GOP loses the House MORE (R-Ohio).

Rep. Matt SalmonMatthew (Matt) James SalmonQuiet jockeying for McCain seat angers Republicans McSally tells GOP colleagues she'll run for Arizona Senate GOP Senate hopeful Kelli Ward leads challengers in internal poll MORE (R-Ariz.), a member of the House Freedom Caucus, earlier on Thursday predicted the rule might be in trouble because conservatives were unhappy with the way the bills were structured.

“I think the rule vote is going to be very, very telling. I think there are a lot of members of the Freedom Caucus that may not be supportive of the rule,” Salmon said in an interview with The Hill's Molly K. Hooper.

Thursday’s drama was reminiscent of the House nearly failing to advance the so-called “cromnibus” legislation to fund the federal government in December.

The rule for the $1.1 trillion spending package advanced by just one vote after Speaker John Boehner (R-Ohio) lobbied conservatives to change their votes. No Democrats swooped in to help with that vote even though many of them supported the underlying legislation.

GOP leaders and the White House for weeks have been lobbying to win members over for fast-track, which would allow Obama to send trade deals to Congress for up-or-down votes.

Peter Schroeder contributed.

This story was updated at 5:27 p.m.