Yes, but look at the matter more carefully. The Obama executive order would've granted 5 million unlawful immigrants in the USA the right to remain and gain citizenship, circumventing the normal immigration rules. Obama couldn't argue that his order was for national security. Trump's order only affects non-US citizens and residents outside the USA, and it has the benefit of a presumed national security aspect.