Europe always supported Israel as a victim of WW2, this support has been misguided for decades IMO.
At least it is finally dawning on many European political leaders that we cannot continue to support Israel, because their crimes cannot be defended by "the other side is just as bad" anymore. Europe is actually moving towards morality in general, not against it.
Regarding Afghanistan that was an FN mandated operation supported by most countries in the world. And it had some pretty good reasons behind it.
But in hindsight the operation was futile, and the atrocious religiously fundamental regime that we hoped to replace with something better is back. Oppressing everybody especially women based on fanatic religious beliefs. IDK why you call it Taliban vs. Israel, because AFAIK it was originally Taliban vs. USA.
So no Europe does not only respect international law when it's convenient. Which is also why from day 1, USA was not allowed to use many European bases for their attack on Iran.
European countries have been following USA into questionable endeavors like the Iraq war, but already back then, many European countries were unwilling to help USA, because the operation was "questionable".
And as it turned out, the intelligence that allegedly justified the action, turned out to be false. Which to many of us was no surprise. But USA fooled many governments. My own government was investigated for the issue, and the conclusion was that they did the right thing, because USA was crucial for our defense!
So yes that part is sick. We are not perfect, but we are trying to improve. And Iraq was themselves an aggressor, so they weren't exactly innocent.