The president threatened to withhold federal funding over the state's policy on transgender athletes participating in high school sports.