The rights of transgender individuals have emerged as a contentious political battleground in recent years