US House passes stopgap spending bill to avert shutdown