When a marine cargo insurer pays a claim and wishes to recover the loss from a negligent carrier, which legal principle allows it to do so?