Whether the compound is legal has been a source of confusion. In June, the federal Food and Drug Administration approved the first CBD prescription drug to be sold in the United States. But the Drug Enforcement Administration has said CBD is illegal because it comes from cannabis, a banned Schedule 1 drug. And on its website, the F.D.A. says products with CBD cannot be sold as dietary supplementsor in food that crosses state lines.