An employment tribunal involving a nurse and a transgender doctor has reignited tensions over gender self-ID policies and women's rights in Scotland.