Ireland appeared on course to legalize abortion in limited circumstances as lawmakers voted Tuesday to support a bill that would permit a pregnancy to be terminated when deemed necessary to save a woman’s life.

Catholic leaders warned that the proposed law, which faces potential amendments this week and a final vote next week, was a “Trojan horse” designed to permit widespread abortion access in Ireland. But Prime Minister Enda Kenny insisted Ireland’s constitutional ban on abortion would remain unaffected, and his government’s Protection of Life During Pregnancy Bill won overwhelming backing in a 138-24 vote.

Ireland’s 1986 constitutional ban on abortion commits the government to defend the life of the unborn and the mother equally. Ireland’s abortion law has been muddled since 1992, when the Supreme Court ruled that this “ban” actually meant that terminations should be legal if doctors deem one essential to safeguard the life of the woman — including, most controversially, from her own suicide threats.

Six previous governments refused to pass a law in support of the Supreme Court judgment, citing its suicide-threat rule as open to abuse. This left Irish hospitals hesitant to provide any abortions except for the most clear-cut emergencies and spurred many pregnant women in medical or psychological crises to seek abortions in neighboring England, where the practice has been legal since 1967.

Kenny’s government had been under pressure to pass a law on life-saving abortions ever since the European Court of Human Rights ruled in 2011 that Ireland’s inaction forced women to face unnecessary medical dangers.

But the catalyst for change was Savita Halappanavar, a 31-year-old Indian dentist who died last year in a western Ireland hospital one week after being admitted in severe pain at the start of a miscarriage. Doctors cited Ireland’s ill-defined and Catholic-influenced laws when denying her pleas for an abortion, even though her uterus had ruptured and exposed her to increased risk of blood poisoning.

By the time doctors authorized an abortion, Halappanavar had already been hospitalized for four days, and the 17-week-old fetus was stillborn. She fell into a state of toxic shock, then into a coma, and died from massive organ failures three days later. Two fact-finding investigations since have found that an abortion one or two days before the fetus’ death would have increased Halappanavar’s chance of survival, but said the hospital was guilty of many other failures in her care.

In years past, a government that took on Catholic orthodoxy in Ireland would have feared damaging splits and electoral annihilation. But Tuesday’s vote illustrates changed social mores and widespread disenchantment with Catholic leaders following two decades of revelations of the Irish church’s role in protecting pedophile priests from public exposure and prosecution.

The most recent opinion poll found that 89 percent want abortions to be granted in cases where a woman’s life is endangered by continued pregnancy. About 83 percent also want abortion legalized in cases where the fetus could not survive at birth, 81 percent for cases of pregnancy caused by rape or incest, and 78 percent where a woman’s health — not simply her life — was undermined by pregnancy. The government bill excludes those three scenarios. The June 13 poll in the Irish Times had an error margin of three percentage points.