Teaching union general secretary says new government will give his successor the chance to ‘make their mark’.