The UK foreign secretary, Boris Johnson, has joined the US in condemning “divisive” German plans to press ahead with the construction of the Nord Stream 2 gas pipeline from Russia to Germany, arguing it could leave European energy consumers heavily dependent on “a malign Russian state”.