That's not the issue. The issue is that Trump said he was going to ban Muslims which violates the 1st Amendment. While the previous president banned people from countries, this president stated that he wanted to ban people of a specific religion. That's a big difference and the one Trump has run afoul of. Obama wasn't that stupid.