Cannabis has been recognised as medicine in a historic UN vote