A class action on behalf of farmers against the MDBA has failed after a judge ruled the agency owed water users no duty of care in relation to economic loss.