Federal courts rewriting state laws or creating whole new state laws is unconstitutional. That is reality.
You think that, I think that.
But the courts don’t, neither do the governors of those states, neither do the people in them (if the people even disagreed with the results, which by and large they don’t).
So what are you and I to do?