US alliance with terror group in Syria 'grave mistake'