KANSAS CITY, Mo. (AP) — An appellate court panel ruled Monday that the American Civil Liberties Union can soon begin collecting signatures that would put a new Missouri law banning abortions at eight weeks of pregnancy to a public vote.

A three-judge panel of the state's Court of Appeals found that GOP Secretary of State Jay Ashcroft was "without authority" to reject petitions to put the law on the 2020 ballot on constitutional grounds. The 31-page ruling was issued just hours after the panel heard oral arguments in the case.

ACLU of Missouri acting executive director Tony Rothert had argued that time was of the essence. Most of the new law, including the eight-week abortion ban, takes effect Aug. 28. The ACLU needs to collect more than 100,000 signatures. Rothert had argued that the signature gathering should begin by July 18.

"We are pleased with the ruling," Rothert said. "We think the secretary of state was wrong and quite clearly trying to derail the referendum effort. We are happy that the court is going to get it back on track."

The Secretary of State's office didn't immediately have a comment.

At issue is how the Republican-led Legislature voted to classify a section of the bill that changed the law to make both parents consent to abortions for minors in most cases. Because lawmakers made it an "emergency clause," it took effect as soon as Republican Gov. Mike Parson signed it into law.

Under Missouri law, there is no right for a referendum when the law is addressing an emergency. The ACLU argued that parental consent isn't actually an emergency, while the law said it is "because of the need to protect the health and safety of women and their children, both unborn and born."

The emergency issue is what led Ashcroft to reject the petitions.

The legal dispute over the abortion law comes as the state's only abortion clinic fights its own court battle to continue providing the service, despite a licensing dispute with the state health department.

RELATED: License hearing for Missouri's only abortion clinic delayed

RELATED: Order: Abortions can continue at Missouri's lone clinic

RELATED: Missouri's only abortion clinic continues fight over license

RELATED: Missouri judge allows abortions to continue, for now

RELATED: Missouri rejects license renewal for lone abortion clinic