Transgender people would be covered under a new rule barring sex discrimination in federally funded health programs.