The U.S. Congress's Joint Resolution for Annexing Texas to the United States Approved March 1, 1845 gave Texas that permission.
But who would get the Alamo?