Previous agreements with the tobacco and opioid industries show the difficulty of putting the money in the right hands.