Which is why the 'spirit of the law' makes no sense at all. It bans Green Card holders solely because of their place of birth. It doesn't protect anyone, and meant solely to please some of Trump voters who don't know, but mostly honestly don't care, about the finer points of constitutional law or human rights.
They're not citizens, but they're entitled to rights based on that Green Card or Visa just like American citizens are. In a similair way, citizens of other European countries can enter, live and work legally in EU memberstates, even though they're not citizens. Besides, there is now a court order by a Federal judge that dictates Green Card Holders must be allowed entry to the United States, so until that court order is recinded or struck down by a higher court, Trump is simply disregarding the constitution he swore an oath to protect just nine days ago.
Of course, the problem with this is that, like I said, most Trump supporters really don't care about constitutional law until it stops protecting their guns.