The study builds on growing genetic research into cannabis use, as policymakers grapple with the risks and benefits of the drug’s soaring popularity.