Jose Mourinho's men, who had been dominant, looked set to be eliminated from European football for the season when Lokomotiv took a 71st-minute lead, but two of the home team's players were dismissed in quick succession and Spurs netted twice in the latter stages to scrape through to the next round.
Spurs had no issue controlling proceedings as they enjoyed 72 per cent of the first-half possession, but they lacked a clinical edge in the final third, with Steven Bergwijn going closest when striking the crossbar early on.
Lokomotiv seemed to have made the most of Spurs' struggles when Georgi Minchev headed them into the lead, but Dinis Almeida was sent off for denying a certain goal – with Harry Kane subsequently netting from the spot – and Birsent Karagaren followed his team-mate in an early exit.