Chile's Constitutional Court on Monday approved a bill to decriminalize abortion in certain cases, a move decried by conservative opponents but hailed by Socialist President Michelle Bachelet as a victory for women's rights.

ADVERTISING

The court's 6-4 vote accepted the constitutionality of a measure to legalize abortions when a woman's life is in danger, when a fetus is not viable and in cases of rape. President Michelle Bachelet has said she will sign the measure that passed Congress this month. It will end Chile's stance as the last country in South America to ban abortion in all cases.

"Today, women have won, democracy has won, all of Chile has won," said Bachelet, a physician and former head of U.N. Women.

Court secretary Rodrigo Pica said details of the decision, which cannot be appealed, would be released on Aug. 28. Demonstrators in favor of therapeutic abortion celebrated outside the courtroom in the Chilean capital, while opponents protested, including two women carrying anti-abortion banners who embraced in tears after the decision was announced.

Conservative lawmakers had filed an appeal with the court to halt the law, arguing it was unconstitutional.

The Chilean reproductive rights organization Miles hailed the court's decision as a "historic moment that marks a before and after for Chilean women."

Chile legalized abortion for medical reasons in 1931, but the procedure was then banned under all circumstances in 1989 during the dictatorship of Gen. Augusto Pinochet.

Women found guilty of having abortions now face prison terms of up to five years. Still, thousands of illegal abortions are performed every year. Most involve black-market purchases of the drug misoprostol to end first-trimester pregnancies.

Those who can afford to sometimes seek abortions in neighboring Argentina or beyond.

"Chile has finally moved one step closer to protecting the human rights of women and girls," said Erika Guevara-Rosas, Americas Director at Amnesty International.

"This victory is testament to the work of millions of women across the Americas and the world who fight against draconian laws that punish women and push them to seeking clandestine and dangerous abortions, putting their health and lives at risk."

The bill's passage comes as views continue to shift on social issues once considered taboo in the heavily Roman Catholic nation that only began to allow divorce in 2004. Congress recognized civil unions for same-sex couples in 2015.

Chile is one of four countries that currently prohibit abortion in all cases, according to the New York-based Center for Reproductive Rights, though a few others have rules so restrictive that they amount to de facto bans.