President Barack Obama says the goal of terrorism is to “weaken our faith” and lead people to strike out against those who look or pray differently.