In 1882, Congress passed the first federal law to restrict the immigration of free people based on race and class. The immigrants this legislation targeted were from