Fergal McGrath, accused of buying cigarettes and lottery tickets with company money, was unfairly dismissed, Labour court holds