The ruling marks a small victory in an ongoing battle over transgender youths' medical records and care