RM of Thompson ordered to cover $40k legal bill in battle with councillor