A transgender hospital worker felt she had a right to use the female-only facility at work, an employment tribunal has heard.