A majority of EU member states have voted in favor the long-awaited Mercosur trade agreement with South American countries.