Under the bill, it would be legal for people 21 years and older to buy and use limited amounts of cannabis beginning Jan. 1, 2022.