Transgender rights advocates said the new rule would face a legal challenge.