The formation of two joint brigades highlights improving cooperation that could help combat IS militants and close security gaps.