Johnson & Johnson and three drug distributors—AmerisourceBergen, Cardinal Health and McKesson—agreed on Friday to move forward with the second largest multistate settlement in U.S. history after 90% of cities and counties signed up to obtain funds to combat the opioid crisis.