BAGHDAD—Iraq’s parliament unanimously approved a package of anticorruption measures proposed by Prime Minister Haider al-Abadi, as lawmakers rallied behind a bold move to defuse street protests over poor government services and performance.

In a moment of rare agreement among the country’s politicians on Tuesday, many lawmakers said the plan was the best way to prevent the country from disintegrating into further chaos.

Almost...