A transgender health worker has been awarded compensation after being forced to reveal his obviously female birth names in a recruitment process.