Johnson & Johnson (JNJ - Get Report) said late Tuesday it settled opioid suits with two Northeast Ohio counties for $20.4 million.

The company said the settlements with Cuyahoga and Summit counties remove it from a federal trial set to begin on Oct. 21.

Opioid manufacturers face hundreds of lawsuits from cities and counties stemming from widespread addiction and tens of thousands of overdose deaths tied to the powerful pain killers.

Privately held Purdue Pharma declared Chapter 11 bankruptcy last month under the weight of legal battles tied to its opioids business and after settlement talks with nearly two dozen state attorneys general collapsed.

Many cases have been consolidated in Federal court in Ohio, where the crisis has been particularly intense.

Johnson & Johnson didn't admit liability in the settlements announced Tuesday. The company will pay a $10 million settlement, $5 million in legal fees, and will make a $5.4 million contribution to non-profit groups with opioid related programs in the two counties.

Cuyahoga county is home to Cleveland. Summit county is home to Akron.

Johnson & Johnson is a holding in Jim Cramer's Action Alerts PLUS member club.

Save 57% During Our Fall Sale. Join Jim Cramer's Action Alerts PLUS investment club to become a smarter investor. Click here to sign up and save!