House votes to avert government shutdown, passing new funding bill