The complaint alleged that Walmart had been filling invalid prescriptions with the knowledge of pharmacists and its compliance team since June 2013.