Teacher sacked over gay dating app activity wins £700,000 payout