The deal secures funding for most of the government while giving lawmakers two weeks to negotiate changes to immigration enforcement. It still needs to pass the House, which is in recess until Monday.