New York City has agreed to pay $40 million to five men who were convicted but later exonerated of brutally raping a female jogger in Central Park in 1989, settling a long-fought civil rights lawsuit, a person familiar with the matter told Reuters.

The violent attack, which became known as the Central Park jogger case, made national headlines as a sign that the city’s crime rate had spiraled out of control, while the outcome of the prosecution raised questions about race and the justice system.

The victim was white, and the defendants, who became to known as the Central Park 5, were all black or Hispanic. The five men — Antron McCray, Kevin Richardson, Raymond Santana, Korey Wise and Yusef Salaam — were 14 to 16 years of age at the time of the rape and confessed after lengthy police interrogations.

Each soon recanted, insisting they had admitted to the crime under the duress of exhaustion and coercion from police officers. The five men were convicted in 1990 amid intense media coverage. A dozen years later, murderer and serial rapist Matias Reyes confessed to the crime, and DNA tied him to the rape.

The victim, Trisha Meili, a 28-year-old investment banker, nearly died from the attack and was left with no memory of it. The settlement still requires approval from the city’s comptroller and from the federal judge in Manhattan, Deborah Batts, who has overseen the case, according to the person familiar with the matter.

As in most cases in which the city settles civil rights claims, the municipal government likely will not admit wrongdoing, the person said.

The settlement was first reported on Thursday by The New York Times.

Jonathan Moore, one of the lawyers for the men, declined to comment. A spokeswoman for the city’s Law Department also declined to comment, citing pending litigation.

The deal comes six months after Mayor Bill de Blasio, who called for a settlement during his campaign, took office. His predecessor, Michael Bloomberg, had long resisted settling the case, with city lawyers repeatedly saying the convictions withstood legal scrutiny regardless of whether they were later vacated.

In January the city asked for the litigation to be put on hold to explore a resolution.

An internal review by the Manhattan district attorney’s office, which moved to throw out the convictions in 2002, found that the boys’ confessions included “troubling discrepancies.”

A judge vacated the convictions. By then, however, all five had been released from prison after serving five to 13 years. They sued the city in 2003 for wrongful conviction and violation of their civil rights, seeking $250 million in damages.

According to the Times, the proposed settlement amount is approximately equal to $1 million for each year the men were in jail.

The lawsuit gained renewed attention in 2012, when famed documentary filmmaker Ken Burns released “Central Park Five,” a movie that cast the men as victims of racial tensions and a rush to judgment.

Al Jazeera and Reuters