New York City has agreed to pay up to $75 million to settle a federal class-action lawsuit that accused police officers of writing at least 900,000 summonses for offenses like trespassing, disorderly conduct and urinating in public that were later dismissed because of legal insufficiency.

The settlement must be approved by Southern District Judge Robert Sweet.