The legal cannabis sector is expected to generate $40 billion and more than 400,000 jobs by 2021 in the United States, according to a study released Tuesday.