A history of the nation’s first transcontinental railway accompanies a steam-train ride through the Canadian Rockies.