McKinsey & Co. goes to court later this month to convince a federal judge to dismiss a large portion of lawsuits filed over its consulting work for opiate manufacturers—and it's got the U.S. Chamber of Commerce and nearly a dozen states on its side.