Justices at the Texas Supreme Court questioned whether they should decide the constitutionality of a 2023 law banning gender-based medical care for children or send it for trial.