The UN Security Council on Thursday unanimously decided to set up an investigation team to collect evidence on the massacres of Iraq's Yazidi minority and other atrocities committed by the Islamic State group in Iraq.
Britain drafted the resolution to help bring perpetrators of IS war crimes to justice -- a cause championed by international human rights lawyer Amal Clooney, who was present for the vote.
The Lebanese-British lawyer represents Yazidi women who were taken hostage and used as sex slaves by IS as it swept into Iraq's Sinjar region in August 2014.
Clooney, the wife of actor George Clooney, sat next to Nadia Murad, a Yazidi survivor of IS enslavement, as the council voted on the measure.
The United Nations has described the massacres of the Yazidis as genocide and Clooney has over the past month made high-profile appearances before the world body to demand action.
"Why is it that nothing has been done?" Clooney told a UN event in March.
"Mass graves lie unprotected and unexhumed. Witnesses are fleeing and not one ISIS militant has faced trial for international crimes anywhere in the world," she said.
After months of pressure Iraq in August agreed to the investigation, which will "support domestic efforts to hold" IS jihadists accountable by "collecting, preserving and storing evidence" in Iraq, the resolution said.
Under the measure, UN Secretary-General Antonio Guterres will within 60 days present to the council details on the mandate of the investigative panel that will work with their Iraqi counterparts.
The investigators will gather evidence on "war crimes, crimes against humanity or genocide" for use in Iraqi courts, according to the resolution.
US Ambassador Nikki Haley described the resolution as "a major first step towards addressing the death, suffering, and injury of the victims of crimes committed by ISIS in Iraq - crimes that include genocide."
IS fighters have been on the run in Iraq since the recapture of Mosul, Iraq's second city in July, which had been under IS rule since 2014.
Tens of thousands of Yazidis fled the August 2014 massacre in Sinjar, and UN rights investigations have documented horrific accounts of abuse suffered by women and girls. 
Around 3,000 women are believed to remain in IS captivity. 
Human Rights Watch criticised the resolution as a missed opportunity by the council to address atrocities committed by Iraqi and other forces.
"No one denies the importance of tackling the widespread atrocities by ISIS in Iraq, but ignoring abuses by Iraqi and international forces is not only flawed, it's shortsighted," said HRW's justice expert Balkees Jarrah.
The Iraqi government worked with Britain to draft the measure.
Related Story