The decision ends a six-year legal saga that tested the limits of the court’s leniency toward trafficking survivors who commit crimes.