Berlin says it will build a liquefied natural gas terminal to reduce reliance on Russian gas imports.