It was a significant escalation for President Barack Obama, who made his political career opposing the war in Iraq and pulled out US troops in 2011.
Previous strikes since Obama launched the US air campaign on August 8 had been mainly in support of Kurdish forces in the north.
US warplanes bombed Islamic State jihadists around a strategic dam on the Euphrates River in an area that the jihadists have repeatedly tried to capture from government troops and their Sunni militia allies.
"The potential loss of control of the dam or a catastrophic failure of the dam and the flooding that might result would have threatened US personnel and facilities in and around Baghdad, as well as thousands of Iraqi citizens," he added.
It was the first time that Washington had carried out air strikes in support of forces including Sunni Arab militia in the current conflict.
Dams have been a key target for the jihadists, and there has been major fighting around Iraq's largest dam on the Tigris River north of militant-held second city Mosul, which has been a major focus of the US air campaign.
US officials have previously expressed concern about the integrity of both Haditha and Mosul dams, which require constant maintenance as a result of under-investment.
The two dams are important sources of both power and irrigation water for farmers.
The jihadist group has carried out a spate of atrocities in areas under its control, some of which it has videotaped and paraded on the Internet.
The United Nations has accused IS of ethnic cleansing in northern Iraq, detailing a campaign of mass detentions and executions in Christian, Turkmen and Yazidi Kurdish areas.
The beheading of American journalists James Foley and Steven Sotloff has added to the pressure on Western leaders.
