Party A does have a way of recovering the costs from, or putting the costs on, Party B or of seeking relief from further damages.
It's called the law of torts and is what brings in the bread and butter for some lawyers -- and can rapidly get very expensive for all involved.