The deal comes after months of Trump's rhetoric about taking over the island.