A planning wrangle centred on long lost documentation has ended with Scottish Borders Council winning a ruling over a former councillor.