Plans for solar panels at a listed building in South Tyneside have been given the green light at appeal, despite heritage concerns from council development chiefs.