Honestly, this is the court doing its job — “states: you can’t use your power to restrict people’s rights unnecessarily.”
As far as violations of states’ rights, there are much bigger fish to fry. You have laws that threaten to take away a percentage of a state’s Federal highway funding if they don’t toe DC’s line as far as things like drinking age or speed limits (before the 90s).
Never mind that a part of those funds were taken from the state’s residents by the Feds in the first place. This is legalized robbery, extortion, and a real perversion of the legislative process.