The ruling said the NHS trust subjected the nurses to harassment by allowing a trans colleague to share the women's changing area