how did completion of the first transcontinental railroad in 1869 encourage settlement of the american west