However, the railroad played a major role in sparking tensions with Native American tribes in the 1870s