Years ago Israel was supporting Hamas in order to weaken PLO.
Looks successful. We supported Stalin to defeat Hitler too. Sometimes its easier and more expediant to fight one evil at a time.