The House of Representatives has passed legislation to avert a partial government shutdown and fund federal agencies through September