(f)to meet the cost of legal proceedings instituted by the employee for vindicating his position in regard to any allegations made against him in respect of any act done or purporting to be done by him in the discharge of his official duty or to meet the cost of his defence when he is prosecuted by the employer in any court of law in respect of any official misconduct on his part: