Transgender teacher to return to classroom