Parliament’s rejection of tenant-protection measures exposed the government’s loss of its majority and accelerated the move to the ballot box.