I haven’t had a chance to drill down into either the law or the ruling.
But if the law is as you say, my guess is that the Indiana legislature constructed the law to trigger the SJW talking points about eugenics, to demonstrate that the talking points were merely posturing all along: that the left wants unlimited abortion on demand even if used for eugenics or to preferentially abort those otherwise highly ranked on the SJW victim scale.
I think you're absolutely right about this.
I hope I don't come across as being critical of the Indiana legislature over this. It's a great law to pass -- but mainly for political reasons, not legitimate moral/ethical reasons that would stand up under close legal scrutiny.