The word that best replaces "obstacle" in the context of the passage is B. hurdle.
"Hurdle" implies a challenge or barrier that must be overcome, which is consistent with the difficulties faced by the Central Pacific Railroad Company in constructing the railway through the Sierra Nevada mountains.