A plan to manage groundwater in the Murray-Darling Basin is invalid, a federal court has ruled following a challenge by Traditional Owners.