As with just about all ideologically-based dictatorships that remain in power for a long time, the Baathists retain little of their ideological purity. They will now do whatever it takes to stay in, or to regain, power. That includes allying themselves with whomever they must.
"do whatever it takes to stay in, or to regain, power."
no doubt.