I’m not sure I understand... how then was congress able to exclude Chinese from immigrating in 1882? That implies they were coming here on some sort of legal basis beforehand.
During this first rash of immigration “debates”, the Ark decision was handed down.
Read the arguments for those that sided with Ark and those that dissented in the opinion. You will be amazed at how close the arguments are on this thread.
But the law is the law and for 112 years this argument has been settled.
If we want it changed, we need to change the Constitution.