A federal court ruling moves New York City closer to releasing a vast trove of records regarding police misconduct, a major milestone in a decades-long fight.