The ruling also affects a large group of trans kids, not just the ones who sued.