A Texas judge has dismissed a lawsuit against General Motors from a woman who blamed a 2012 car crash on a faulty ignition switch that later prompted the company the recall of 2.6m vehicles.