Campaigners are celebrating after appeal judges overturned Government approval for a wind farm in the Scottish Borders despite the project application being rejected three times since 2020.