ATLANTA — Georgia's Republican Gov. Brian Kemp signed legislation on Tuesday banning abortions once a fetal heartbeat can be detected. That can be as early as six weeks, before many women know they're pregnant.

Kemp said he was signing the bill "to ensure that all Georgians have the opportunity to live, grow, learn and prosper in our great state."

The signing caps weeks of tension and protests at the state Capitol in Atlanta, and marks the beginning of what could be a lengthy and costly legal battle over the law's constitutionality.

The legal showdown is exactly what supporters are looking for.

Anti-abortion activists and lawmakers across the country, energized by the new conservative majority on the U.S. Supreme Court that includes President Donald Trump appointees Neil Gorsuch and Brett Kavanaugh, are pushing abortion bans in an attack on the high court's 1973 Roe v. Wade ruling, which legalized abortion nationwide until a fetus is developed enough to live outside a woman's uterus.

ACLU of Georgia legal director Sean Young said the group would challenge Georgia's new abortion restriction in court.

"Under 50 years of Supreme Court precedent, this abortion ban is clearly unconstitutional," Young said in a recent interview. "Every federal court that has heard a challenge to a similar ban has ruled that it's unconstitutional."

Under current law, women in Georgia can seek an abortion during the first 20 weeks of a pregnancy. If it's not blocked in court, the new ban would take effect Jan. 1, 2020.

HB 481 makes exceptions in the case of rape and incest — if the woman files a police report first — and to save the life of the mother. It also would allow for abortions when a fetus is determined not to be viable because of serious medical issues.

The bill also deals with alimony, child support and even income tax deductions for fetuses, declaring that "the full value of a child begins at the point when a detectable human heartbeat exists."

Republican Rep. Ed Setzler, the bill's author, said in an interview after the bill passed the state House that it's a "common sense" measure that seeks to "balance the difficult circumstances women find themselves in with the basic right to life of a child."

But Democratic Sen. Jen Jordan disagreed that the legislation was balanced. "There's nothing balanced about it, it's an all-out abortion ban," Jordan said in a recent interview.

Jordan said she is especially worried the new law will push obstetricians away from practicing in Georgia, worsening health care outcomes for women in a state that already has one of the worst maternal mortality rates in the country.

"It's about the unintended consequences," Jordan said. "They're making policy choices that are going to end up causing women to die, and they're preventable deaths."

In the first few months of 2019, "heartbeat abortion" bans have been signed into law in four states: Mississippi, Kentucky, Ohio, and now Georgia. Lawmakers in a number of other states including Tennessee, Missouri, South Carolina, Florida, Texas, Louisiana and West Virginia are considering similar proposals. A bill that recently passed the Alabama House would outlaw abortions at any stage of pregnancy, with a few narrow exceptions.

Kentucky's law was immediately challenged by the ACLU after it was signed in March, and a federal judge temporarily blocked it.

According to the Guttmacher Institute, a research group that supports abortion rights, about 33,000 abortions were provided in Georgia in 2014.