What was the goal of the Pacific Railway Act in 1862?

Pay for a railroad connecting the East with the West
Lower the fares on train travel
Protect train passengers from attacks by bandits
Allow for safer travel along the Pacific coast