The House on Friday cleared a short-term measure to avoid a government shutdown and raise the debt limit through December, ratifying a deal President Trump struck with Democrats.

Lawmakers voted 316-90 for the package that includes more than $15 billion in disaster recovery aid for communities affected by Hurricane Harvey. The majority of House Republicans voted for the bill, something that had been uncertain, but more of the votes in favor came from Democrats.

All of the 90 votes in opposition were from Republicans.

The House voted earlier in the week to approve a standalone measure to provide federal assistance for Harvey relief in an overwhelming 419-3 vote. But many conservatives balked at the final bill, which became a three-month extension of the debt ceiling with no spending reforms.

Democrats, who sought to maximize their leverage knowing GOP leaders would likely need their votes to avoid a default, insisted on a three-month extension. Despite protestations from GOP leaders, Trump went with the offer from House Minority Leader Nancy Pelosi (D-Calif.) and Senate Minority Leader Charles Schumer (D-N.Y.).

The biggest fiscal fights of the year will now be pushed to December, when lawmakers typically are under pressure to reach deals before leaving for the holidays.

The Republican Study Committee, the largest GOP caucus in the House with more than 150 members, opposed the deal.

“Republicans campaigned on changing the status quo, and Americans elected us based on that message,” RSC Chairman Mark Walker (R-N.C.) said in a statement.

GOP leaders pushed to attach a debt limit extension to the hurricane aid out of concerns that the billions of dollars needed to clean up after the disaster would result in the U.S. hitting the debt limit earlier than the originally expected date of Sept. 29 .

With another major hurricane set to make landfall in the U.S. this weekend, Ryan explained that Congress needed to act quickly to ensure the Federal Emergency Management Agency wouldn't run out of money.