House passes spending bill, to avoid government shutdown