As long as you played by those rules and weren't some ungrateful foreigner who wanted special treatment, and after being allowed to come live in the Land Of The Free And The Home Of The Brave, you were considered a good American and properly assimilated. It was a modified version of America's standard foreign policy precept: as long as you do what we want, you're a good guy.
During this same period in history, when the Untied States was being flooded with immigrants at Ellis Island, Canada was only receiving a slow trickle of Eastern Europeans and immigrants from the British Isles. The country was in desperate need to populate it's newly-formed Prairie Provinces to prevent them from being swallowed up by American expansion, and to pacify the native populations.
In the early days of nationhood, the country already had to suppress two native and Metis (mixed blood) uprisings led by Louis Riel, first in Saskatchewan and then Manitoba. The silver lining of those rebellions was they had hastened the building of the trans-continental railway. Riel and his followers had been able to win their fight in Saskatchewan because the government hadn't been able to get troops out there fast enough to combat them.
Not willing to let that happen again, Canada's first, and third, Prime Minister, Sir John A. MacDonald, made it his personal pledge that a railway would be built connecting the country. He won the first election because of that promise, lost the second because of the corruption involved in attempting to build it, and won the third when it became obvious he was the only one who was going to be able to force the thing to be built.
You can build a railway, but you can't force people to ride on it. Canada began to actively recruit immigrants by sending representatives to countries with similar environments as the Western provinces. Forty acres, a mule, a bag of seed, and free transport (something along those lines anyway) were wealth beyond reckoning for landless peasants in the Ukraine.
They would travel by boat to Montreal, Quebec, be given the deed to their land, vouchers for their goods, and packed onto the first train heading west. A week later, they were standing on their homestead somewhere in the middle of Alberta, Saskatchewan, or Manitoba – a minimum of a hundred and one miles from the nearest rail line. (One of the deals that lost MacDonald the second election was giving the Canadian Pacific consortium one hundred miles of land on either side of the rail line as payment for building the railroad.)