The ruling absolves the company from paying millions of dollars in restitution to the families of those who died.