Court agrees ‘legal highs’ are not legal after all