A federal bankruptcy judge has ruled that people suing General Motors over faulty ignition switches can seek punitive damages that could cost the company millions of dollars or more.