By CBSMiami.com Team

MIAMI (CBSMiami) – Florida Attorney General Ashley Moody announced Thursday that the state and Walgreens have reached a $683 million settlement in a lawsuit accusing the company of improperly dispensing millions of painkillers that contributed to the opioid crisis.

Walgreens’ monetary commitment follows a four-week court battle over the company’s role in the opioid crisis.

READ MORE: Redistricting Wrangling Goes To Florida Supreme Court

Officials said the total funds secured through litigation efforts amount to more than $3 billion.

“Before taking office, I vowed to seek accountability for the opioid crisis, and with this final action, I can now say we have successfully accomplished our mission. The more than $3 billion secured through years of determined legal work will go to communities devastated by opioids. Our hope is this money, paid out over the next two decades, will save lives and help Florida families and communities heal,” said Attorney General Ashley Moody.

READ MORE: NOAA: 'Above Average' 2022 Atlantic Hurricane Season, Predicts 6-10 Hurricanes

The office of the attorney general said a portion of the more than $680 million secured from Walgreens will be sent directly to Florida’s cities and counties.

All proceeds must be spent on opioid abatement, including prevention efforts, treatment or recovery services, state officials said.

MORE NEWS: Insurance Bills Clear Committee, Move To Florida Senate

Back in March, Moody announced the securement of more than $870 million for opioid abatement from CVS Health Corporation, CVS Pharmacy, Inc., Teva Pharmaceuticals Industries Ltd. and Allergan PLC.

CBSMiami.com Team