Judge allows Dakota Access Pipeline to stay open pending rev