The party will demand a public vote if the Tories don’t change their deal or hold a general election.