Query: When did the Northern Pacific Railroad reach Montana from the west?
Context: Tracks of the Northern Pacific Railroad (NPR) reached Montana from the west in 1881 and from the east in 1882. However, the railroad played a major role in sparking tensions with Native American tribes in the 1870s.