Scottish plans to introduce minimum pricing for alcohol have been dealt a blow by a ruling from the European Court of Justice.