Trump has said the proclamation was in response to caravans of Central American migrants making their way to the US border through Mexico.