House passed legislation Tuesday to avert a partial government shutdown and fund federal agencies through September, providing critical momentum as the measure now moves to the Senate, where bipartisan support will be needed to get it over the finish line.

Republicans needed overwhelming support from their members to pass the funding measure, and they got it in the 217-213 House vote.