A federal bankruptcy judge has ruled that people suing General Motors over faulty ignition switches can seek punitive damages.