The justices heard arguments over a state’s power to prevent transgender teenagers from obtaining puberty blockers and other treatments a Tennessee law deems inconsistent with the minor’s sex.