In your situation, what was the law? The US had a treaty with Cuba that recognized parental rights.
It's a good thing Mr Lincoln didn't care about the law.