The large pediatric provider had been under investigation by Texas' attorney general for three years over its gender-affirming care services. It said it agreed to the deal "to protect our resources from endless and costly litigation."