Labour leader Keir Starmer officially became prime minister of the United Kingdom on Friday after his party won a landslide victory in a national election.