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