The ruling , by Judge Denny Chin of Federal District Court in Manhattan , is the latest turn in 10 years of legal battles , charged with emotion and politics , over the New York version of Megan 's Law .