Federal law generally protects retirement savings when a company files for bankruptcy. But that’s not always the case.