The Scottish government has voted in favour of an up to 21-MW wind farm proposal after the project was earlier rejected on landscape and visual impact concerns.