The former history and German teacher has been engaged in a legal dispute with the Co Westmeath school since 2022 - and he is set to remain in prison