The court ruling backed a previous decision by Ministry of Environment, Water and Ecological Transition (MAATE) to grant water rights and other environmental permits to the scheme.