Obama lambasts anti-Muslim sentiment, says it hurts US