Protecting the Stranger: The Origins of US Immigration Regulation in Nineteenth-Century New York