“ruling didnt actually claim that the bill did bad things, only that the lawmakers didnt listen to the opposing views when they wrote and lawfully voted for the measure? Am I seeing that right?”
No. That is not how the ruling read.
Good (I guess; it’s still a ruling against sanity) - makes much more sense that the article’s writer botched it in the story.