China and the European Union agreed on Monday to end their dispute over Chinese-made clothes marooned on European docks , as both sides sought to use a high-level meeting in Beijing to stress broader cooperation .