He defied judicial fiat. He broke no state or federal law. There is a difference.
The federal court found him in violation of the supreme law of the land, the US Constitution.
For several decades, the US Supreme Court has ruled that the First Amendment was incorporated to the states by the Fourteenth Amendment.
Even our current conservative justices in the SCOTUS consider the First Amendment as binding to the states.
In order to give the powers back to the states, we need to appoint judges who do not think that the First Amendmend applies to the states.
Finding such judges will be difficult. Once a branch of government has grabbed power, it will not let go easily. That's why federal judges, even conservative Supreme Court Justices, will continue to rule that the First Amendment applies to the states, and they will continue to decide state issues using the First Amendment to the US Constitution.