It's not Obama - it's the usual warmongers of the political establishment, both Dem and GOP.
They have their marching orders to weaken Iran and Hezbollah and they'll do as they're told even if that means arming Al Qaeda.
That logic makes no sense when considering Obama also armed the Muslim Brotherhood and fostered the Islamic takeovers of Libya and Egypt.