The ruling center-left Labour Party has selected Andy Burnham as its new leader, clearing the way for him to replace Keir Starmer as British prime minister.