In a social media post Trump said the agreement "gives the U.S. permanent control over security and all other needs."