The lawsuit alleges Walgreens knowingly filled millions of prescriptions that lacked a legitimate medical purpose.