What president gave Florida back to Spain even after Jackson had overthrown the Spanish geverment?
There are two problems with this question:
First, Florida (east and west) have been a part of the US since
1821 when Spain ceded it in under the administration of President
James Monroe through The Adams-Onís Treaty of 1819 (named for
Secretary of State John Quincy Adams and Spanish Foreign Minister
Luis de Onís who negotiated the treaty).
Second, Andrew Jackson did nothing in Florida other than to lead
military units against the Seminoles during the First Seminole War.
President Monroe sent Jackson to lead actions against the Seminole
in December 1817, and to prevent slaves running to freedom in
Florida. Jackson exceeded his orders and messaged Monroe: "the
possession of the Floridas would be desirable to the United States,
and in sixty days it will be accomplished." Historians assert that
Monroe's directives to Jackson were purposefully vague to provide
him plausible deniability on the international stage. Jackson never
personally claimed any land for the US. The only states that were
admitted to the union during Jackson's presidency (1829-1837) were
Arkansas (15 June 1836), and Michigan (26 January 1837).
While the argument can be made that President Monroe intended
for Jackson to be significantly annoying to the Spanish in Florida
with the intent of acquiring the territory, the land of Florida was
never given back to Spain or any other nation once it was acquired
by the US.