I don't know why the above accurate comment is downvoted.
Stuff like this happens all the time though. You give resources to the enemy of an enemy (temp. friend) and they may end up as your enemy with the demise of your common enemy. Ideal allies you have a lot in common with (shared values) which was true regarding Europe and USA last century.