That blow out preventer was federally mandated. As was the dead backup battery.
The thing about mandates is they are easy to write. It's the enforcement that has the problem. If you look at every airplane crash, exclude pilot error and rare weather events, you will find the remainder were due to lax maintenance. Federally mandated lax maintenance.
Maybe we need to clue in the insurers? If I were writing insurance for a blowout, I'd want a petroleum company to be in the consortium I described. Hell, I'd help run it! I'd make damn sure they were doing rigorous research and engineering. (And hardware testing!)