How cannabis medicines gained legitimacy