At least six hospitals have struck agreements with the Trump administration to pay fines and stop providing gender-transition treatments to minors.