The judge said he recognized that being transgender is “natural” and “not a choice.” But he said one’s sex is also natural and “dictates physical characteristics that are relevant to athletics.”