Under the deal, Johnson & Johnson would not produce any opioids for at least a decade. And AmerisourceBergen, Cardinal Health and McKesson share prescribing information under a new system intended to stop the avalanches of pills that arrived in some regions about a decade ago.