Actually, it was the Royal Navy that was fighting the slavers in 1841. I’m not sure what the American policy was at the time, IIRC there was still slavery at the time but I think importing more slaves was illegal. What I do recall is that many Carribean nations owe a lot of their heritage to the British fight against the slavers; The town of Freeport in the Bahamas got its name from the fact that the British turned loose several “cargoes” there.
The Constitution forbade Congress from passing any law stopping the slave trade before 1808, but they did so immediately once they were allowed to. Cuba was a Spanish colony where slavery was still practiced so that may have been the destination.