The decision was the latest salvo in an ongoing fight over whether trans athletes should compete according to their gender identity or their sex assigned at birth.