Using absolute numbers probably isn't the smartest idea. Canada has more immigrants per population than USA.
The first limit on immigration in the US was the Page act in 1875, which restricted immigration of Chinese women.
Before that there were no limits.
Yeah, it seems now it needs to cage children to deter their pesky parents from seeking opportunities in the land of opportunity.