The commonwealth just got millions of dollars to help fight the opioid epidemic as part of a multibillion-dollar nationwide opioid settlement.