Iraq's parliament passed into law on Tuesday a revised bill that had sparked outrage over fears it rolled back women's rights and permitted underage marriage.
The parliament said on its website that it had adopted "the proposal to amend the Personal Status Law", as well as "the second amendment of the general amnesty law".
The amendment to the 1959 Personal Status Law allows people to choose between religious or civil regulations for family matters such as marriage, inheritance, divorce and child custody.
An earlier version of the amendments faced a backlash from feminists and civil society groups over fears it would lower the minimum age for Muslim girls to marry to as young as nine years old.
But a revised version reinstated clauses of the old law that set the age of marriage at 18 -- or 15 with the consent of legal guardians and a judge, MP Mohamed Anouz told AFP.
Under the new amendment, couples can opt for Shiite Muslim or Sunni Muslim rules, and clerics and lawyers will have four months to establish community-specific regulations.
In October, Amnesty International warned the amendments could strip women and girls of protections regarding divorce and inheritance.
The parliament also passed a general amnesty law that had sparked disagreements between political blocs. The law grants retrials to those convicted of a number of crimes.
The Taqadom party, the most influential Sunni bloc, welcomed the adoption of the amnesty law.
Iraq's Sunni community has been the main proponent of revisiting the law, pushing for it to include a full review of all convictions on terror charges.
The law excludes convictions for "terrorist crimes" that resulted in the death of a person or "permanent disability", or that involved fighting the Iraqi security forces or "sabotage of institutions", according to Anouz.
But it does allow the judiciary to reopen investigations and start new trials for those who say they confessed "under torture" or were convicted based on "information provided by a secret informer", Anouz explained.
In recent years, Iraqi courts have ordered hundreds of executions in terror cases, proceedings that rights groups say often lack due process or in which confessions suspected to have been extracted through torture are admissible.
In a country plagued by endemic corruption, those accused of embezzling public funds can also benefit from the amnesty law if they repay the stolen money, Anouz said.
A previous 2016 amnesty reportedly covered 150,000 people.
The new amnesty law excludes rape, incest and human trafficking.
The laws passed Tuesday, each endorsed by the Shiite, Sunni and Kurdish communities, were adopted in one package, with political parties agreeing to avoid any blockage.
But several lawmakers denounced irregularities in the voting process, with some threatening to go to court to have Tuesday's session invalidated.
MP Nour Nafe claimed the parliament passed the personal status law and the general amnesty "without a vote".
The MPs "did not raise their hands", she said on X, adding that some lawmakers had left the room in response to the "farce".
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)