A proposed £100 million ($156 million) 50MW pumped storage power plant in north Wales has been granted planning permission.