The president said the vessel was heading to the United States, but he did not offer details about its location. Legal specialists condemned the action as illegal.