A federal judge in New York on Monday said that the public had the right to see an excerpt from Ghislaine Maxwell’s July 2016 deposition that she said were illegally obtained by prosecutors and should be barred from the courtroom.