Turkey's president ratifies Qatar military deals