KANSAS CITY — A federal judge said he will issue a ruling Tuesday that will determine whether Missouri's new abortion law banning abortions at or after eight weeks of pregnancy will take effect as scheduled this week.

During a court hearing on Monday, Planned Parenthood and the American Civil Liberties Union asked U.S. District Judge Howard Sachs to issue a temporary restraining order to stop the law from taking effect on Wednesday until a legal challenge against it is decided. Sachs told attorneys he had a draft of his written ruling ready, but that he wanted to consider Monday's arguments before issuing it on Tuesday. He did not indicate how he would rule.

The law is scheduled to take effect Wednesday.

The law includes exceptions for medical emergencies, but not for rape or incest. If courts don't uphold the eight-week ban, the bill includes a series of less-restrictive bans ranging from 14 weeks up to 20 weeks. It would also ban abortions based solely on race, sex or a diagnosis indicting the potential for Down syndrome.

Claudia Hammerman, an attorney for Planned Parenthood and the American Civil Liberties Union, argued that earlier abortion-related rulings from courts across the country, including the U.S. Supreme Court, make it clear the bans are unconstitutional because they address abortions before the fetus is considered viable outside the womb, which can be from 24 to 28 weeks.

"Every single court has held that banning abortions based on gestational age is unconstitutional," Hammerman said. "That is the only legally relevant issue."

State Solicitor General John Sauer argued that most abortions are performed in Missouri prior to eight weeks.

Much of his argument centered on whether Planned Parenthood and the ACLU have legal standing to oppose the law. He argued only patients have the constitutional right to file lawsuits opposing abortion laws because their rights are being violated, while Planned Parenthood and the ACLU have only a financial interest in allowing abortions.

Planned Parenthood and ACLU lawyers in a court filing wrote that unless Sachs blocks the law, it will severely limit access to abortion and prevent the "vast majority of patients from obtaining the constitutionally protected medical care they seek."

"As a result, some patients will be prevented from obtaining abortion care entirely, and be forced to carry their pregnancies to term against their will— for some, even in the face of significant health risks that nevertheless would not qualify as a 'medical emergency' under the Bans," attorneys wrote.

They added that other patients will seek abortions out of state or "outside the medical system," despite health risks.

Attorneys for the state argue that courts have allowed limits on abortions based on the gestational age of the fetus, although similar abortion restrictions in North Dakota and Iowa have been struck down by judges. In court documents, they told the judge that the state's goal is "protecting fetal life" as well as protecting women.

The Missouri law in question also includes an outright ban on abortions except in cases of medical emergencies, but that would take effect only if the landmark 1973 U.S. Supreme Court's Roe v. Wade ruling that legalized abortion nationwide is overturned.

Missouri already has some of the nation's most restrictive abortion regulations. Just one clinic in the state performs abortions.