It seems fairly obvious that what happens is a tariff is applied to the items entering the US and not the oil going to Cuba.
If you trade oil with cuba, then any trade with the US will be subject to the tariff.