Even with the Islamic State on the run, U.S. advisers grapple with political and military problems in wresting Iraqi and Syrian towns from extremists.