Anthony Gordon scored his fifth Premier League goal of the season as Newcastle United came from behind to beat Tottenham Hotspur 2-1.