Not surprising in the slightest.
The Judge took the unusual step of enjoining the law from the bench in the interest of preventing irreparable harm to any potential Presidential candidate, including Trump and will issue a formal ruling shortly.
Regardless of what your opinions are on the merits of the law.
It clearly is both unconstitutional and also preempted by federal statute.
There could be no other outcome in this case than a complete overturn of this statute.