The lawsuit represents the strongest rebuke at the state level of Trump’s executive order targeting transgender healthcare.