When did Congress pass the Mobile Act which recognized West Florida as being part of the United States ?
The dispute was ultimately resolved by the Adams - Onis Treaty of 1819 , with the United States gaining most of what it had claimed in the west .