The US also upset the Tokugawa Shogunate, the isolationist military-fuelaistic government which had ruled Japan for more than two hundred years. I don't think any of this is so clear cut.
So is it not interesting that the US went to great efforts to keep the same corrupt government in place that attacked them just because the alternative was socialism?
...and also before WW2, which pushed Japan into war.