Australian legal lobbyists, the Environmental Defenders Office, were harshly criticised by a federal judge.