The House of Representatives on Friday pushed through a $1.7 trillion bill to fund the government, averting a government shutdown.