Three large opioid distributors will pay dozens of West Virginia counties, cities and towns a total of $400 million for their roles in the opioid epidemic in a settlement announced Monday.