Purdue Pharma, manufacturer of blockbuster painkiller OxyContin, has reached a tentative settlement with 22 state attorneys general and more than 2,000 cities and counties that sued the company and accused it of fueling the opioid crisis of the past two decades, people close to the deal said Wednesday.