Siding with the state in a closely watched case that has kept the cannabis industry in limbo, the Florida Supreme Court on Thursday upheld a 2017 law designed to carry out a constitutional amendment that broadly legalized medical marijuana.