Mr. Raisi won a presidential election in June in which more than half the electorate stayed away after many heavyweights were barred from standing.