A comedian would have struggled to script the prime minister’s earnest pitch to parliament about the scandalous mistake that might cost him his job.