Boris Johnson is clinging on to power by a thread after an extraordinary day in Westminster, possibly the last of his premiership.