The fight over medical treatment for transgender youth is upending a decades-old consensus that mitigated legal conflicts between states and helped dramatically reduce parental kidnappings during divorce and child custody disputes.