MANILA, Philippines (AP) — The Philippine Supreme Court has ruled that a family planning law opposed by the Roman Catholic Church is constitutional, clearing the way for its implementation as a means to provide reproductive health care services primarily to the country’s poor.

Supporters of the law cheered as court spokesman Theodore Te made the announcement Tuesday in northern Baguio city where the magistrates issued the ruling.

President Benigno Aquino III signed the law in December 2012 but the court imposed a temporary restraining order while it studied petitions questioning its constitutionality.

Catholic leaders consider the law an attack on the church’s core values and say it promotes promiscuity and destroys life. The government says it helps the poor manage the number of children they have and provides for maternal health care.