Automation is not grounds for firing employees, judge says