Labour picked Andy Burnham as leader, paving the way for him to succeed Keir Starmer as Britain's next prime minister.