(AP) — A state judge has suspended a Georgia law banning abortions for women who are more than 20 weeks pregnant.

Fulton County Superior Court Judge Doris Downs suspended the law Friday; it was set to take effect Jan. 1.

The law bans doctors from performing abortions five months after an egg is fertilized, except when doctors decide a fetus has a defect so severe it is unlikely to live. The law also makes an exception to protect the life or health of the mother, though that does not apply to a mother’s mental health.

The American Civil Liberties Union of Georgia filed a lawsuit on behalf of three obstetricians challenging the law’s constitutionality. The organization says the law violates the state’s privacy protections as provided for in the state constitution.