LAS VEGAS—Nevada has struck a $45 million settlement deal with McKinsey & Company for the global consulting firm’s role in advising opioid makers how to sell more prescription painkillers amid a national overdose crisis. The western state reached the deal after sitting out a multi-state settlement with McKinsey announced in February. The hard bargaining has…