Washington lurched toward another potential government shutdown crisis Friday, as the House approved by a 219-203 vote a GOP-authored short-term funding measure designed to keep the government running through Nov. 18 and Democrats in the Senate immediately vowed to reject the bill.

“We expect a vote fairly quickly,” said Senate Majority Leader Harry Reid (D-Nev.) on Friday morning.

In an after-midnight roll call, House Republican leaders persuaded conservatives early Friday morning to support a stop-gap measure nearly identical to one they had rejected just 30 hours earlier. By a narrow margin, 213 Republicans supported the plan, along with six Democrats; 179 Democrats opposed it, joined by 24 Republicans.

The bill, which will keep federal agencies funded through Nov. 18, passed over staunch objections from House Democrats, who opposed a provision that would pair increased funding for disaster relief with a spending cut to a program that makes loans to car companies to encourage energy efficient car production.

But House Speaker John Boehner’s (R-Ohio) victory is likely to be short-lived. Reid said late Thursday that the measure could not pass his chamber, with a vote expected sometime Friday. A Senate defeat would leave Congress at a new standoff.

“It fails to provide the relief that our fellow Americans need as they struggle to rebuild their lives in the wake of floods, wildfires and hurricanes, and it will be rejected by the Senate,” Reid said of the House bill.

Without a resolution, the Federal Emergency Management Agency’s disaster relief fund will run out of money early next week and the rest of the government would be forced to shutdown Oct. 1.

House leaders contend that the Senate would be responsible for blocking desperately needed disaster dollars from flowing to FEMA if they reject their bill.

“You saw the House act,” said House Majority Leader Eric Cantor (R-Va.) as he left the Capitol early Friday morning. “We are intending that the money gets to FEMA and to disaster victims as they need it.”

“I think Harry Reid’s political ploy is not going to work,” Cantor continued, adding that blame for FEMA funding drying up if the Senate rejects the bill would fall on Senate Democrats. “I guess Harry Reid will have to bear the burden of denying disaster victims the money they need.”

Friday’s House vote marked a reversal of fortunes for Boehner, who after losing the initial Wednesday vote on the House spending resolution found himself roaming the contours of a familiar dilemma — capitulate to fiscal hawks in his own party who want to spend less, or compromise with Democrats who want to spend more.

Instead, Boehner found another route: He huddled all day and night Thursday with his rank-and-file, warning them he would give them one more chance to approve the bill or he would be forced to agree to drop the offsetting cut, as Democrats had demanded.

In addition, after a 90-minute meeting with the House GOP Conference on Thursday afternoon, the leadership agreed to an additional, largely symbolic cut by striking $100 million from a loan program that funded the bankrupt solar panel manufacturer Solyndra. That company, which received the loan guarantees through the Obama administration’s 2009 stimulus legislation, has become a favorite target for Republicans in their critique of the White House’s handling of the economy.

As for the swipe at the program that had funded Solyndra, Rep. David Dreier (R-Calif.) told colleagues on the House floor late Thursday that the goal was to “ensure that hard-earned dollars of the American people are not wasted in the way that we have seen” with the company.

Rep. Louise M. Slaughter (D-N.Y.) countered that the measure had hardly changed after a day of wrangling and still made “unacceptable cuts to an essential manufacturing jobs program to pay for equally essential disaster relief.”

The blow-up over what Boehner had once hoped would be a routine matter — a bill to merely keep government operating until Nov. 18 — illustrated what has become a central reality for the Republican speaker: He controls the House majority only on paper.

On any given vote, he must contend with a sizable bloc of his own members willing to buck his leadership in the name of shrinking government.

This leaves him in the uncomfortable position of having to consider alliances with Democrats — and facing negotiating those alliances from a position of weakness.

Despite the embarrassing loss on Wednesday’s vote, Republicans defended the decision to hold the vote even though they realized it was likely to fail. The GOP leadership wanted to demonstrate to the recalcitrant conservatives that their actions had real consequences. One senior Republican adviser called the process “an educational experience.”

“I’ve always believed in allowing the House to work its will. I understood what the risk was yesterday. But why not put the bill on the floor and let the members speak? And they did,” Boehner said Thursday morning at his weekly press briefing.

According to GOP lawmakers and aides, House Majority Whip Kevin McCarthy (R-Calif.) had reported to Boehner and Cantor that a few dozen Republicans would oppose the legislation, mostly because they thought its spending levels were too far above those they voted for in the spring when they approved the 2012 budget originally proposed by House Budget Committee Chairman Paul Ryan (R-Wis.).

Boehner’s leadership team knew that it would need Democratic votes to approve the plan, but only by Wednesday afternoon did they fully understand that House Minority Leader Nancy Pelosi (D-Calif.) and House Minority Whip Steny H. Hoyer (D-Md.) were whipping their caucus to oppose the measure and make Boehner deliver nearly all Republican votes for passage. Rather than pulling the bill from the floor, Boehner told his deputies to hold the vote.

The extraordinary effort required to pass such a basic bill suggests even bigger battles later in the fall on potential blockbuster deficit-reduction plans.

The stopgap spending bill is necessary because the House and Senate have stalemated over how to fund government through the whole year. Without a stopgap in place to buy time for further negotiations, the government will shut down at month’s end.

House leaders had hoped to pass the short-term funding bill without the strife that had characterized recent debates, which they knew would erode financial markets’ confidence and spark further disgust among voters. They would do it by agreeing to set spending in the bill at a rate of $1.043 trillion for the year, the amount set in the rancorous August deal to raise the nation’s debt ceiling.

But that plan ran headlong into the political realities of their divided chamber — as well as a congressional calendar that provides for a week-long recess starting Friday so that Jewish lawmakers can observe their holidays next week.

Democrats, stung by accusations that they had made too many concessions in the debt fight during the summer, stood unified against the measure over a Republican decision to pair $3.65 billion in funding for disaster relief with a $1.5 billion spending cut to the the Advanced Technology Vehicle Manufacturing program, which offers loans to car companies to encourage the production of energy-efficient cars. That particular cut was anathema to many Democrats, who argued that the loan program has generated tens of thousands of jobs.

Democrats relished the prospect that their unified opposition forced Boehner to publicly struggle.

“In the House, the majority controls all the mechanisms,” said Rep. Anna G. Eshoo (D-Calif.). “You’d better be able to produce the votes. You just cant go willy-nilly to the floor and then say, ‘Well, oopsy.’ ”

Staff writers David A. Fahrenthold and Felicia Sonmez contributed to this report.