From what I understand - it wasn’t a “judge” who sent out this decree. It was the labor commissioner. How messed up is that? He’s all Twittering about how wonderful it is, too.
You are correct. And it is messed up.