The state courts have agreed to let the state and local officials do their jobs, but retain the jurisdiction to reverse their decisions if they actarbitrarily, that is without good reason under the law.
Judges, including Supreme Court justices, often act as if they were philosopher-kings, arbitrarily handing down decisions on issues that should be left to the hurly-burly of the political process.