Russia, Turkmenistan and Kazakhstan will build a gas pipeline around the Caspian Sea, in a setback for the EU.