U.S. District Judge Jed S. Rakoff ordered prosecutors Thursday to release documents detailing calls on cell phones used by a prostitution ring whose clients included the former governor Eliott Spitzer.

The New York Times sued late last year to get the material unsealed. The newspaper has agreed to allow the government to withhold the names of 67 customers named in the documents.

Spitzer resigned last year after details were revealed of a tryst with one of the ring’s prostitutes in a Washington hotel.

Investigators had been looking into the governor’s affairs after noticing payments made to prostitutes directly from his bank accounts.