The company may face legal action in Massachusetts unless it drops prices for its hepatitis C drugs. In California, it is being sued over patents for an H.I.V. treatment.