Massachusetts lawmakers have voted to make some regulatory changes to the state's marijuana industry.