President Donald Trump signed a package to provide relief for Hurricane Harvey, suspend the debt ceiling, and fund the government for three months on Friday, just a few hours after the House passed the bill.

The legislation came out of a deal cut on Wednesday between President Donald Trump and Democratic leaders Chuck Schumer and Nancy Pelosi.

The package passed the House on a 316-90 vote. All the opposition came from Republicans, mostly from the more conservative wing of the party.

The bill includes a three-month debt-ceiling suspension. Republican leaders wanted a longer suspension to avoid throwing the must-pass legislation into a wild December that will now include another government-shutdown threat, a closer deadline on the Deferred Action for Childhood Arrivals program, and possibly legislation to overhaul the US tax code.

At the same time, many conservatives in the House wanted the debt-ceiling suspension to be paired with spending cuts to offset some of the increased debt load. This was not in the bill and caused an uproar among Republican members.

For Hurricane Harvey relief, the bill includes about $7.4 billion for the Federal Emergency Management Agency, $7.4 billion for the Department of Housing and Urban Development, and $450 million for the Small Business Administration.

Although Harvey caused devastating flooding in parts of Texas, four Republicans from the state voted against the package: Reps. Sam Johnson, Jeb Hensarling, Joe Barton, and Mac Thornberry.

The bill passed in the Senate on Thursday. It will now go to Trump, who is likely to sign it into law shortly.