The u.s. government contributed to the building of the transcontinental railroad by

Anot allowing immigrants to work for railroad companies.
Bcollecting extra taxes from the industries that would use the railroad.
Cawarding loans and land grants to private companies to build the railroad.
Dassigning the army to lay out a path for the railroad.