There are 2 sides to this argument.
1) It is unfair to all the kind hearted muslims(muslims that have no bad intentions such as those who do no harmful things to others like terrorism and discrimination just because of someones religion and also not treating everyone equally just because of sexuality, gender, race, religion, age, skin colour.) Some muslims don't believe in treating people unequally.
2) It sends out a very clear message that terrosim of any kind or hatred will NOT be tolerated because the care and well-being of citizens in america should always be the highest priority. It finally takes someone with balls to ban muslims. Because i don't think this is racist. It is just looking after americans.
The route cause of terrorism will be targeted which is certain islamic beliefs from some idiots who ruin it for the other nice, kind hearted muslims.