A federal appeals court has ruled that an Indiana law banning gender-affirming care for minors can remain in effect.