Check the result screen for that encounter. For railway-along obstacles, clearing grants their listed drops and progress, then the track re-opens.