The Trump administration has criticized Nicaragua for serving as an illegal immigration pathway to the United States.