President Donald Trump signed the 2018 farm bill on Thursday afternoon, which legalized hemp — a variety of cannabis that does not produce the psychoactive component of marijuana — paving the way to legitimacy for an agricultural sector that has been operating on the fringe of the law.

Industrial hemp has made investors and executives swoon because of the potential multibillion-dollar market for cannabidiol, or CBD, a non-psychoactive compound that has started to turn up in beverages, health products and pet snacks, among other products