An amendment in Kentucky that would have changed the state’s constitution to halt the right to an abortion was defeated at the ballot box Tuesday, making Kentucky the second deep-red state to reject such an effort, following Kansas.

“This is a historic win for the people of Kentucky,” Rachel Sweet, campaign manager for Protect Kentucky Access, said in a statement released just after midnight Tuesday. “Not only does it represent a win against government overreach and government interference in the people of Kentucky’s personal medical decisions, it represents the first time so many different organizations have come together with such an intense single-minded purpose to defeat a threat of this magnitude.”

The Associated Press called the race Wednesday morning after about 86% of votes had been counted, with about 53% of voters against it and about 47% for it.

The vote followed a high-stakes campaign where abortion-rights supporters spent more than $5 million to try to defeat Constitutional Amendment 2 and abortion opponents spent nearly $1 million for its passage.

Abortion has been outlawed in Kentucky, except for medical emergencies, since the U.S. Supreme Court struck down Roe v. Wade in June.

MORE ELECTION RESULTS:Missouri legalizes weed, Kentucky rejects anti-abortion amendment: Key midterm ballot measures

ABORTION ACROSS THE COUNTRY:Abortion rights were on the ballot in these 5 states. Here’s what voters decided.

Kentucky’s GOP-controlled General Assembly, which put the constitutional amendment on the ballot, and Yes for Life which campaigned for it, had consistently predicted a win, arguing Kentucky is one of the most “pro-life” states in the country. The ballot measure was among more than a dozen bills approved by Kentucky lawmakers in recent years to restrict or ban abortion.

But opponents, led by Protect Kentucky Access, argued the measure was too extreme and would allow current laws to remain in place that ban abortion even in cases of rape, incest or fetal anomalies. Abortion is allowed in Kentucky only to save the life of or prevent a disabling injury to a pregnant patient.

Abortion-rights supporters in Kentucky celebrate win 

The American Civil Liberties Union of Kentucky and Planned Parenthood, partners in Protect Kentucky Access, released statements declaring victory in the effort to defeat Constitutional Amendment 2.

“To every Kentuckian who fought for reproductive freedom this election cycle, this win is for you,” said Tamarra Wieder, Kentucky state director for Planned Parenthood Alliance Advocates.

“The people of Kentucky have spoken, and their answer is no – no to extremist politicians banning abortion and making private medical decisions on their behalf,” the ACLU said in a statement.