SNP ministers have blocked plans for a wind farm and battery storage on a Unesco World Heritage Site.