I thought the president had the legal authority to exclude anyone for any reason, whether for sartorial style or for religious beliefs. I didn't think the First Amendment or the 14th Amendment applied to non-resident, non-citizens located outside the US national borders. Let's call them "Remote Foreign Nationals" or "RFN's".
This decision seems to imply that RFN's have certain rights merely by having a relationship (even a non-familial relationship) with US citizens. That is an interesting precedent.
Granted, this is an equitable decision on a preliminary injunction, and it could be clarified later, but the language of the decision is an interesting diminishment of the power of the Executive to stop people at the border. Now, if the court will be kind enough to extend the probable cause and illegal search and seizure rules to US citizens returning to the country, that would be great. It would be nice if US citizens' rights were increasing at the same pace as non-citizens' rights.
[Edited because I originally referred to RFN's as merely "non-resident, non-citizens," but I wanted to specify that I wasn't talking about illegal aliens inside our borders, and that instead I meant foreign nationals who were outside our borders.]