'Thoughtcrime': Immigration official sacked for tweets wins compensation