A surprise settlement ends the case before it reached the jury. Here’s an inside look into how it went down.