Armed Iraqi militia factions framed their attacks on the United States Embassy as acts of solidarity with Iran and retaliation for United States military strikes against militia commanders.