House approves funding measure, which excludes ICE, ending weeks-long crisis that left many federal workers without pay.