The bloc now faces its biggest test yet: building balanced partnerships with global powerhouses like China and the US.