Bayer has agreed to pay up to $7.25 billion over the coming years to settle claims that its weed-killer Roundup caused cancer. A judge in Missouri gave final approval to the nationwide settlement on Friday.

The settlement covers thousands of people who have been diagnosed, or may be diagnosed, with non-Hodgkin lymphoma. They allege the blood cancer is linked to glyphosate, Roundup’s main ingredient. Eligible claimants could receive between $10,000 and $165,000, depending on factors including their occupation and level of glyphosate exposure, their age at diagnosis and other considerations.

Bayer CEO Bill Anderson called the agreement a “decisive milestone” that will “mitigate the risks” of pending and future litigation. Judge Timothy Boyer described it as “among the largest in the history of mass tort personal-injury class action settlements.”

The plaintiffs’ attorney, Christopher Seeger, said the final approval order “delivers guaranteed compensation to Roundup cancer victims who have waited more than a decade for justice.”

The new settlement is in addition to an earlier agreement in which Bayer agreed to pay about $10 billion to $11 billion to resolve more than 100,000 Roundup-related claims.

Earlier this year, the U.S. Supreme Court ruled in Bayer’s favor, finding the company could be shielded from lawsuits in state courts alleging it failed to warn consumers about glyphosate’s cancer risks. Bayer is a German company that now owns Monsanto.

The World Health Organization’s cancer agency concluded more than a decade ago that glyphosate is probably carcinogenic to humans. Prominent environmental health scientists have raised similar concerns as recently as this year. Bayer has denied that its product causes cancer.

The Environmental Protection Agency has said it “did not identify risks of concern from glyphosate uses, including for cancer.” The agency is reviewing evidence on human health after facing pressure from advocates and some scientists.

Glyphosate safety concerns have been an animating issue for supporters of Health Secretary Robert F. Kennedy Jr. and his Make America Healthy Again agenda. The Trump administration has supported the herbicide-maker, siding with Bayer in the Supreme Court case and issuing an executive order to promote domestic glyphosate production.

Bayer removed glyphosate from its U.S. products for residential use several years ago. The chemical remains in use in agriculture.