Tottenham Hotspur remain in control of Group H after coming from behind to beat Borussia Dortmund with Real Madrid also confirming their qualification with an easy with away to APOEL.