Couldn't you do something like make (via legislation) any item on commercial sale subject to a minimum 10 year warranty on workmanship [for military purchasers] for repair or replacement, up to a value of X% of company revenue.
When you made a lemon, surely it's then cheaper to replace with a current product than it is to go to court; and being a military supplier would be a high status indication so don't companies (any making products that aren't adjective crap) should still want to make money through creating good products?