Historic Scots bridges at risk of infilling after council ‘planning blunder’