The former councillor appeared in court on Wednesday where he was sentenced