Under the terms, the opioid maker agreed to pay $900m, and the family behind it agreed to pay up to $6.5bn.