Any dangerous material that is not stored or handled properly is immediately confiscated.
Do remember that the bigger problem here wasn't a sea-unworthy ship that had to be impounded, but the fact the explosives were not safely stored or disposed of. That's not directly the fault of the ship's owner.
Or is sold to the highest bidder like like any other 'proceeds of crime' government auction.
I think that's precisely why the substance was there in Beirut anyway - it HAD been confiscated.
"No invasion or bombing of any country is going to affect the facilitation of terrorist funding anywhere near the action of restricting trade for companies that have these byzantine ownership structures that shield the actual owners and profiteers from identification"