A federal judge on Thursday denied a request by New York's Nassau County to let it enforce new restrictions on transgender athletes at county sports venues without facing legal action by the state's attorney general for violations of anti-discrimination laws.