The difference was that by the time of the invasions of Iraq and Afghanistan (justified or not), the US had their ducks in a row. They built an international coalition to support the invasions.
Russia had... Belarus. Yes, China, Iran NK, have come into the fold, but that took a bit of time. At the beginning, even Switzerland opposed the invasion!