In the same way that you can buy indemnity insurance for that, i'm sure you could buy cover for legal charges too, but i may be wrong. You can't insure your business against fines imposed by courts for (e.g.) H&S breaches or negligence claims.
(And that, kids, is why good H&S might cost a bit...