The Tennessee House of Representatives passed a bill on Thursday that would ban abortion after a fetal heartbeat is detected, mimicking laws in other states that have been struck down by the courts and drawing the criticism of both advocates and opponents of abortion rights.

The measure, House Bill 77, would tightly restrict the window of time within which a woman could seek an abortion, because a fetal heartbeat can be detected as early as six weeks into a pregnancy. That is before many women even realize they are pregnant.

The bill, which is part of a category of anti-abortion measures called “heartbeat bills,” will now be referred to the State Senate, where abortion rights groups have said they hope to derail it. If it were to be passed by the Senate and signed into law, it would become one of the most restrictive abortion laws in the country.

Hours after the vote in Tennessee, the Georgia House of Representatives passed a similar bill that would outlaw abortions after a fetal heartbeat is detected. The state’s governor, Brian Kemp, a Republican, has indicated that he will sign the legislation, House Bill 481, if it passes in the State Senate.