Agreement would channel $80B to Medicare, Medicaid drugs