Walmart settled a U.S. Department of Justice lawsuit on Friday. The government accused the retailer of fueling the national opioid epidemic through unlawful prescription dispensing. Specific financial terms of the agreement remain confidential.

Federal prosecutors alleged Walmart pharmacies failed to appropriately scrutinize suspicious prescriptions. The settlement resolves a significant legal challenge and potential financial liability for the retail giant. This agreement ends years of litigation and removes a major source of corporate uncertainty.

Walmart remains a dominant player in the consumer staples sector and a primary component of the VDC and XLP ETFs. The resolution allows the company to move forward without the cloud of this specific federal case.