Big pharma and retail drug stores could face legal and regulatory challenges including class-action lawsuits.