But the plan was opposed by an array of GOP conservatives who thought the bill spent too much, more liberal Democrats who objected to higher spending levels for defense, and by outside budget groups which argue Washington has given up on reining in the federal deficit.
House Democrats ended up supplying most of the votes for the budget deal, which was the culmination of weeks of talks between Treasury Secretary Steven Mnuchin and House Speaker Nancy Pelosi.
“We are taking action to avoid another government shutdown, which is so harmful to meeting the needs of the American people,” Pelosi said on the House floor.
"This agreement is not perfect," said Rep. Marcy Kaptur (D-OH). "Congress's top responsibility is to keep the ship of state running."
The plan now goes to the Senate, where a vote is expected next week, before Senators leave on an extended summer break.