This is more than likely blatantly unconstitutional.
There is nothing in the US constitution that would contravene this or any other limitation of immigration.
Nothing whatsoever indeed. Foreigners have no standing here.
As an aside, you shouldn't use legal terms like "standing" in a discussion like this unless you are absolutely sure that you're using it correctly. Foreigners absolutely can have standing in US courts. Stick to broader non-legal terms when trying to make a point like that.
(FYI, it's not settled whether the First Amendment applies to undocumented or prospective immigrants. It does protect resident aliens.)