WASHINGTON — House GOP leaders are regrouping after a surprise loss on a measure to provide $3.7 billion for disaster relief and prevent a government shutdown at the end of next week.

Speaker John Boehner of Ohio said Thursday that he would meet with Republican lawmakers this afternoon on Capitol Hill to discuss how to move forward after a surprise Wednesday vote in the House against legislation extending government funding and disaster relief monies.

"There's no threat of government shutdown. Let's just get this out there," Boehner said at his weekly press conference.

Wednesday's 230-195 defeat came at the hands of Democrats and tea party Republicans.

Now the question confronting GOP leaders like Speaker John Boehner of Ohio is whether to push the legislation to the left or the right in hopes of passing it through the House and reaching agreement with the Democratic Senate before disaster aid runs out for victims of Hurricane Irene and other disaster early next week.

Before Wednesday's loss, the House GOP seemed likely to score a win over Senate Democrats pressing a larger aid package.

The House demise of the measure was caused by Democrats opposed to $1.5 billion in cuts to a government loan program to help car companies build fuel-efficient vehicles. On the other side, almost 50 GOP conservatives felt the underlying bill permits spending at too high a rate.

The defeat appears to give Democrats greater leverage in stripping the cut to the carmaker subsidy and could lead to a deal with Senate Democrats on a larger disaster aid package.

The Speaker blamed Democrats on Thursday for playing politics with the vote.

"This continuing resolution was designed to be a bipartisan bill, and we had every reason to believe that our counterparts across the aisle were supportive," he said. "And once they began to see where some of our votes were, they decided to play politics and vote against disaster relief for millions of Americans affected by this."

Boehner and his leadership team are back at the drawing board as they seek to make sure the government doesn't shut down on Sept. 30, the end of this fiscal year. More immediate is the risk that the government's main disaster relief program could run out of money by Tuesday or so.

One option is to find a different spending cut to offset $1 billion worth of immediate disaster aid needed to make sure victims aren't cut off next week.

The Federal Emergency Management Agency has only a few days' worth of aid remaining in its disaster relief fund, lawmakers said. The agency already has held up thousands of longer-term rebuilding projects — repairs to sewer systems, parks, roads and bridges, for example — to conserve money to provide emergency relief to victims of recent disasters.

The looming shortage has been apparent for months, and the Obama White House was slow to request additional money.

The underlying stopgap funding measure would finance the government through Nov. 18 to give lawmakers more time to try to reach agreement on the 12 unfinished spending bills needed to run government agencies on a day-to-day basis for the 2012 budget year.

Forty-eight Republican broke with GOP leaders on the vote; six Democrats voted for the measure. Some of the Republicans came from manufacturing states like Michigan, which benefit from the carmaker loan program.

The underlying stopgap measure was opposed by conservative Republicans unhappy with the spending rates set by the measure, which are in line with levels set by last month's budget and debt pact with President Barack Obama. That measure provides about 2 percent more money for Cabinet agency budgets than Republicans proposed when passing a nonbinding budget plan in April. More than 50 Republicans recently wrote to Boehner calling on him to stick to the earlier GOP budget.

Senate Democrats, who muscled through a stand-alone $6.9 billion disaster aid measure last week, called upon House GOP leaders to add additional disaster funding to whatever future stopgap measure rises from the rubble of Wednesday's vote. Unless Congress passes stopgap legislation by midnight on Sept. 30, much of the government will shut down.

"Consider making the disaster relief more robust" in the next bill, said Sen. Mary Landrieu, D-La. "Please talk to the Democrats."

Landrieu said FEMA Director Craig Fugate told her Wednesday that the agency's disaster relief fund may run dry Tuesday. That would mean that there's no money to provide shelter, cash assistance or other help to victims of Irene, thousands of fires across Texas and flooding in Northeastern states.

This article contains reporting from NBC News' Luke Russert and Frank Thorp and The Associated Press.