Walgreens has agreed to pay $106 million to settle lawsuits that alleged the pharmacy chain submitted false payment claims with government health care programs for prescriptions that were never dispensed.