Theresa May could resign if she loses a vote on leaving the customs union after Brexit