The two world wars boosted American power and devastated potential rivals to an extent that could not have lasted more than a few decades.