The president said there will be major repercussions, including halting a pipeline that will bring gas from Russia to Germany.