For over a decade, the General Motors legal department quietly worked to contain the damage of defective ignition switches.