Prime Minister Theresa May and her Cabinet have reached an agreement, but they still have to get the EU on board.