The House on Friday overwhelmingly backed the Senate's version of a bill raising the nation's borrowing limit for three months, funding the government and providing $15.3 billion in aid for victims of Hurricane Harvey.
The final count was 316 to 90. The motion received unanimous support from Democrats and from more than 130 Republicans.
Trump signed the bill late Friday afternoon, according to a tweet from the White House.
All negative votes were by GOP members, including the leaders of two conservative caucuses: Rep. Mark Walker, R-N.C., who chairs the Republican Study Committee, and Rep. Mark Meadows, R-N.C., who leads the even more conservative House Freedom Caucus.
The bill that was ultimately agreed upon was not the one that the House leadership originally hoped to pass. At the start of the week, Republicans had intended to tie Harvey relief to a longer-term debt ceiling hike, which would have offered more stability to credit markets than a short term fix.
But President Donald Trump upended those plans on Wednesday, when he agreed with Democratic Sen Chuck Schumer and Rep. Nancy Pelosi at a White House meeting to support a three-month extension of the debt limit, which will have to be renegotiated in December. Republicans across Capitol Hill were shocked at the president's decision, but most quickly came aboard, rather than buck their party's leader.
On Thursday, Meadows' and Walker's groups expressed opposition to what was ridiculed by some as the "Trump-Schumer deal."