Technically, not illegal.

Practically, the sanctions/restrictions will be imposed, due to fear of losing access to US market/US infrastructure.