General Motors announced this week a judge in Delaware had dismissed a lawsuit by shareholders seeking to recoup losses stemming from the recall of millions of vehicles with an ignition switch defect linked to deaths.