That is a dangerous trend. Unfortunately it has been happening for years and nobody has put a stop to it. Many years ago an out of control judge in Arizona even ordered the amount of money school districts were to spend.
I don’t understand why you Americans even have legislatures any more. The judiciary unilaterally legislates all the time, and this is allowed to proceed without incident and only pathetic protest which is never followed up by action. So the judges are the law of the land, and do as they will without check (except for higher judges).
The concept of reviewing legislation to make sure it is constitutional IS an important one, but it is one the Founders delegated to the voters. Voters who saw their legislatures enacting unconstitutional legislation could throw out the lawmakers and elect new ones to resolve the issue, rather than abandoning representative government and giving all power to the judiciary such as America has done.