It will take a long time to recognize the Taliban, says US President