The U.S. House of Representatives on Thursday overwhelmingly passed legislation to keep federal agencies funded until April 28 and avert government shutdowns at the end of this week when existing appropriations expire.