The Ukraine War is responsible for a significant portion of US inflation. Not all, but maybe a third, at its peak.[1]
But as other posters have mentioned, the FED had been telegraphing raising interest rate hikes for months prior to the war. I would wager the acceleration of inflation accelerated their rate hikes, but hikes were coming nonetheless. Russia essentially made a difficult situation much worse.
That said, we can no more end that war than we can invade Russia and force them to withdraw. The best policy going forward is to continue to support an ally who was aggressed upon, one whom we promised to protect in case they were invaded in return for them giving up their nuclear weapons only thirty years ago.[2]
1. https://www.marketwatch.com/story/the-russian-invasion-of-uk...