Cost of new rail construction

$2.2million a mile,Today…Ok back when the Union Pacific was being built,How did it cost per-mile back then? Back then.