Judge: COVID restrictions based on a whim, fancy and prejudice