The 68-year-old prime minister had fought to the last, instead of resigning before the vote, as many had urged.