You're confused. Its not Federal law that the judge is applying. Its constitutional rights that the judge is guaranteeing. And State constitutions are most definitely subject to constitutional guarantees.
It is if it violates the rights and privileges of US citizens. Or applies the law unequally to any US citizen.
As the rights guaranteed in the US constitution trump any State constitution.
You are the one who is confused, maybe you should learn the differences between state and federal law, and also how those laws can and can't be applied. Let me say this again. If it is in their state constitution, it would need to be voted on to ratify. A judge cannot override constitutional law. In your liberal dream world where hopes and wishes overrule reality that works. In the real world there are checks and balances.
And again, it is only unconstitutional if it violates the constitution. And when it is concerning state law, and state authorities the state constitution applies. When dealing with federal entities, the federal constitution applies.