Joao Palhinha was the hero as Tottenham beat Everton 1-0 on the final day of the season to confirm their Premier League status.