(Source: Freight Waves, May 31, 2023)
The Pacific Railway Act of 1862 was enacted by President Abraham Lincoln to garner federal support for construction of the transcontinental railroad. While B&O Railroad was the first commercial transportation by rail in 1827, connecting Chicago to the East Coast, there still was not a direct connection completely west.
Full story: Freight Waves