what did federal government give the union pacific railroad company to help them construct the railroad and the telegraph line?