May clings on as Brexit gambit backfires