The PM should have stood firm in the face of Tory revolt