The "Pinto Memo" [1] being a notable example. Although, as the article says, the cost / benefit analysis was against "societal costs" of the safety issues, not just the cost of litigation.
[1] https://en.wikipedia.org/wiki/Ford_Pinto#Cost%E2%80%93benefi...