A mayor of a small West Virginia city brought to its knees by opioids and representatives of large cities and counties left reeling by the epidemic will gather in federal court here on Friday morning, to sit side by side with chief executives from the country’s largest drug distributors.