Many of those same voters sat out this election, saying that the campaign had been engineered to put Mr. Raisi in office or that voting would make little difference no matter the winner, moderate or conservative. He had been expected to win handily despite late attempts by the more moderate reformist camp to consolidate support behind their main candidate — Abdolnaser Hemmati, a former central bank governor.