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.