US Shutdown Nears End After Narrow House Vote on Funding