Immigration has always come under the plenary powers of The Congress and is not subject to judicial review. This plenary power doctrine has weakened over the centuries but it still holds.

https://cis.org/Report/Plenary-Power-Should-Judges-Control-U...