All of Obamas bans had a specific reason as you stated above. His reason wasn't 'because they are Muslim.'
Also if Trump truly wanted to ban people from countries with a proven terrorist track record against the United States then topping the list should be Saudi Arabia followed by Egypt and Pakistan. Oh, yeah, the Saudi's are major investors in Trump properties so that's not going to happen.