Massachusetts agrees to settlement for thousands of people who were wrongfully convicted of drug charges