That's a proposed law in North Carolina (S.B. 514). It's quoted and mocked in "I am trying to report gender infractions in my kindergarten but don’t know what counts!" by Alexandra Petri (in WaPo).
What does it mean for a school kid to "desire to be treated in a manner incongruent with the minor’s sex." The school shouldn't be treating their children differently based on their sex in the first place. The child's desire should be meaningless. There should be only one kind of treatment. Unless you're talking about the bathrooms....
Petri writes:
Who is the person in this state who understands gender well enough to feel that this was something worth enshrining in law and not just arbitrary and hurtful and a sledgehammer looking for a nail?...
ADDED: Here's the whole text of the bill. The quoted subsection — truly puzzling taken out of context — fits under the heading "Protection of parental rights." The idea is that parents have a right to make decisions about their child's mental health care and about any gender treatments that might be offered to a child with gender dysphoria.
A reader named Robert emails: