The three biggest U.S. drug distribution companies and the drugmaker Johnson & Johnson are on the verge of a $26 billion deal to settle lawsuits brought by state and local governments across the country over the toll of prescription opioids, lawyers suing on behalf of local governments said.