The Scotch Whisky Association (SWA) has said it may appeal to the UK's highest court after Scotland's justice system delivered a major blow to its efforts against minimum pricing.