The USA is threatening trade sanctions if Germany builds the pipeline. I would not call that "not-allowing".
That seems to be OP's whole point. The US is responding as a sovereign nation to actions of other sovereign nations. Phraseology like "allow" and "disallow" are not accurate. If Germany does the cost-benefit analysis and decides to cancel the pipeline because they don't want trade sanctions, that was their decision as an independent nation. It is not as if we are threatening war.