The city has agreed to pay $75 million to settle a class-action lawsuit that claimed the NYPD issued hundreds of thousands of unjustified criminal summonses.

The city's Law Department says judges threw out 900,000 of them from 2007 to 2015 because they were deemed legally insufficient.

Despite the settlement, the city denied the lawsuit's accusations that officers were making arrests in order to meet a quota.

Officials say the NYPD has updated its officer training in response to the suit.

The court still has to approve the settlement after a fairness hearing, which is expected to take place in about three months.