The Georgia Supreme Court ruled Monday that the state cannot be sued over a controversial law that bans most abortions after 20 weeks and gives prosecutors access to women's medical records.

But, in a 71-page opinion, Justice Keith Blackwell left the door open for challenges to state officials individually.

“Simply put, the constitutional doctrine of sovereign immunity forbids our courts to entertain a lawsuit against the State without its consent,” Blackwell said.