which state was returned to spain after the revolutionary war