How the U.S. defines who belongs, and how these policies shaped the idea that some immigrants were "desirable" and others were "problematic".