HR manager said he was ‘devastated’ by criticism but judge says he suffered no unfavourable treatment