The Supreme Court of Spain has backed the government’s measures that resulted in cuts worth €1.7 billion (£1.3bn) in the renewable energy industry in 2014.
It found they don’t violate the Spanish Constitution and EU legislation.
The court received hundreds of appeals from green energy companies two years ago following the announcement however it made the decision after reviewing three lawsuits.
It also said the firms won’t have to pay back the subsidies that were granted before 2014.
Earlier this year, the European Wind Energy Association and the Spanish Wind Energy Association stated Spain could miss its 2020 green targets.