A $1.2 trillion bill to avert a partial shutdown and fund the federal government passed the U.S. House of Representatives on Friday.