Trump's Muslim ban isn't to make America safer. It's to cater to the fears and prejudices of the weak-minded, strictly to keep their support. 
Bannon knows what works and has trained Trump well to follow his advice.