Not surprised. Republicans advocate for judicial restraint only as long as it suits them.
And Democrats argue states’ rights when it suits them.
States' rights do not apply in the opposite case when a fedral rule is made and the states don't want to enforce it or have a law that contradicts it. Their laws can't undermine the fedral law.
Hope that's helpful for your understanding of why this is different to the normal "states' rights" argument which is invoked when a state wants to avoid fedral rules.