The implication is that people not in or legally in the US are not entitled to entry and the final judgement rests with the Chief Executive. Due process does not apply.
If the Court wanted to rule on something, they would state so explicit, not imply it. You are confounding two groups. The first are those not in the the US. The second are those that are in the US, legally or not.