Note it's a preliminary injunction (http://apps.washingtonpost.com/g/documents/business/spacex/9...), which is basically a device that keeps the status quo from changing irreversibly while the parties figure out the merits of the suit. This doesn't mean that SpaceX has "won" but it does mean that they have demonstrated at least a "substantial likelihood for success on the merits" of the case.
It also only applies "until the court receives the opinion of the United States Department of the Treasury, and the United States Department of Commerce and United States Department of State, that any such purchases or payments will not directly or indirectly contravene Executive Order 13,661."
After reading the injunction it seems that the court believes that the test is "a reasonable likelihood of success on the merits" not "a substantial likelihood for success."