The EU was an inspiration to the rest of the world, and now it’s not