Immigration Policy and the Railways: The Formation of the Railway Agreement