Iran’s supreme leader has appointed his close ally, Ali Larijani, as the country’s de facto leader, sidelining the elected president, Masoud Pezeshkian.