The general thinking is that a law is unjust if it doesn't square with natural law. This is certainly the view that was put forth in Martin Luther King's Letter from Birmingham Jail.
So, a law that was passed that treated people differently wouldn't square with the natural law that all humans are equal. And thus, one would have the obligation to disobey that law.
No >:D
Free points btw, this is my brothers account
yey now im not banned
President Chester A. Arthur signed the Chinese exclusion act in 1882 which banned Chinese immigration to the United States for a total of 40 years.