US House passes stopgap spending bill to avoid shutdown