…unless they also condemn the USA for invading Afghanistan, Iraq, etc.
Most European territories serve the USA’s geopolitical goals. Sanctions against Russia right now are part of that. There’s nothing moral about it. It’s simply a service to the USA for being in its sphere of influence. There is nothing, not a single shred of integrity in that.
If you find a territory which sanctions Russia for its crime, and also the USA for its crimes, you can recognise it as a real principled act.
Does it matter to the discourse re Ukraine though? Being hypocritical doesn’t mean being wrong in every case. Not to mention that by that same token, the people who condemn the US for its actions in Iraq and Afghanistan would be as hypocritical for not condemning Russia’s actions in Ukraine.
You also seem to miss that the actions can serve more than one actor. Europe’s goals can be aligned with the US without it being hypocritical - they simply align.