That doesn't make it illegal at all. Lots of what SpaceX does is covered by ITAR and they have no issues building rockets.