A lower court had ordered agents not to make indiscriminate stops relying on factors like race or speaking Spanish.