No serious injuries were reported from the strike, outside the city of Erbil in Iraqi Kurdistan, and an American official said the consulate site was undamaged.
Rival candidates conceded the election to Mr. Raisi, Iran’s judiciary chief, a close ally of the supreme leader who has a record of grave human rights violations.
Iran-backed militias in Iraq are suspected of carrying out recent drone strikes on sensitive American targets in Iraq, evading U.S. defenses.
The tense encounters come as the two countries have resumed talks over renewing the 2015 nuclear agreement. The latest episode ended only after an American warship fired warning shots.
Mohammad Javad Zarif, the Iranian foreign minister, described a rivalry with a powerful and widely revered military leader, Qassim Suleimani.
The legal basis for the war against Al Qaeda and its successors is aging and frayed, but how to replace it has long bedeviled lawmakers.
Fifteen people arrested in Ethiopia were part of what American and Israeli officials said was a foiled Iranian plot against diplomats from the United Arab Emirates.
After weeks of escalation and threatening language, the Defense Department is sending mixed messages as the anniversary of the death of an Iranian general nears.
The flights came a week after President Trump warned Tehran following rocket strikes on the U.S. Embassy in Iraq.
It was the second time in three weeks that Air Force bombers had conducted long-range flights near Iranian air space on short notice.
After suffering a string of audacious attacks, Tehran faces an agonizing choice: embracing hard-liner demands for swift retaliation, or trying to make a fresh start with the Biden administration.
The killing of Iran’s top nuclear scientist is likely to impede the country’s military ambitions. Its real purpose may have been to prevent the president-elect from resuming diplomacy with Tehran.
Disregarding norms and accepted wisdom, President Trump went his own way in the Middle East and, in some cases, got what he wanted.
U.S. and Iraqi officials say they are surprised by the proposed retreat, which could set back American efforts to fight the Islamic State and to limit Iranian influence.
The cyberattacks were in retaliation for the death of Maj. Gen. Qassim Suleimani of Iran in a U.S. military airstrike in January, according to a federal indictment unsealed Tuesday.
The defeat of the measure allows President Trump to continue to act unilaterally on Iran, in defiance of Congress.
The president said the resolution was an “insulting” move to limit his powers as commander in chief.