(Bloomberg) -- Uniper SE and RWE AG lost a bid to get compensation from the Netherlands government over the forced early closing of their coal plants in the country. 

A Dutch court ruled Wednesday that the energy giants weren’t entitled to payouts after the country adopted a law in 2019 that ordered all coal plants to stop burning the dirtiest fossil fuel by 2030 in order to cut emissions fast enough to fall in line with climate change pledges. 

“It is an important day for the climate,” Rob Jetten, Dutch Energy and Climate minister, said in a statement. “We continuously stated this measure is necessary because the operators showed too little initiative to make their coal plants more sustainable. It is good we have clarity now.”

The companies said that the Dutch government invited them to build coal-fired plants and therefore deserve to be compensated for the lost profits. The government argued that the coal-fired power plants were already making a loss and that the companies are seeking compensation for bad investments. RWE alone was seeking €1.4 billion ($1.4 billion). Uniper never disclosed how much compensation it was asking for.

RWE said it was “disappointed” with the outcome. “We believe interfering with our property without receiving compensation is not acceptable. We will continue to study the ruling and will consider whether to appeal.”

The verdict “was foreseeable for the owners that such a ban would be imposed,” according to a statement from The Hague court.

A total of four coal plants are still in operation in the Netherlands of which, Uniper and RWE own two. Uniper’s Maasvlakte plant was opened in 2016 and RWE opened its plant in Eemshaven back in 2015.

“When a company does long term investments, the rules should not be changed along the way,” a Uniper spokesperson said. “We have to take this into account for future investments.”

This ruling doesn’t spell the end for the battle between the firms and the government. Both companies began suits via the international investment pact the Energy Charter Treaty with a verdict expected early next year. In October, Jetten announced the country’s intention to leave the ECT as it clashes with international climate goals.

(Updates with Uniper statement in the penultimate paragraph)

©2022 Bloomberg L.P.