US judge orders more environmental analysis of Dakota pipeline