The lawsuit comes amid escalating efforts by the U.S. government to restrict the availability of certain services for transgender adolescents.