A late strike from Pierre-Emile Hojbjerg secured Tottenham's place in the Champions League last 16 with a 2-1 win away to Marseille.