House passes bill to fund agencies amid shutdown