Obama says US will prevail in fight against Islamic State