The deal paves the way for the government to reopen but the agreement still needs to be voted on in the House.