A Kentucky judge has blocked a controversial law that would ban abortions after a fetal heartbeat is detected, which is typically about six weeks into a pregnancy.

The ruling by Judge David J. Hale of the state’s western judicial district came hours after Republican Gov. Matt Bevin signed the measure into law, The New York Times reported.

Hale found that the law was potentially unconstitutional and ordered a hearing within the next 14 days to hear presentations on it.

The ACLU, which filed suit against the new law on Friday, estimates that the legislation would ban 90% of abortions in Kentucky, given that most women don’t realize they’re pregnant until the seventh week of their pregnancy or later.