An Apple employee who took secret photos of female colleague was 'unfairly' fired, judge rules