The day you finally do some research on why Obama's ban was significantly different than Trump's ban is the day you'll also discover why Trump's ban was ruled unconstitutional and Obama's wasn't. 

I'll get your research started for you: Obama's ban didn't single out or prioritize based on religion. Trump's had a Christian preference. 

But of course, Obama was a constitutional scholar and lawyer, and Trump is just a bumbling idiot.