Scotland's Cabinet agrees to 'protect' place within EU