The Legal Resources Centre hails court order as stunning victory for indigenous communities along the coast