The judge ruled with DTE and other energy companies in lawsuits with St. Clair County over its use of public health rules to restrict renewable energy projects.