The levies would be effective immediately if the country does not halt the movement of caravans into the U.S., the president said.