From BBC news,
The Securities and Exchange Commission (SEC) accused Mr Musk of breaching a court order to not share information which could impact the financial markets, without pre-approval.
Is the to here the equivalent of in order to?
Or does the entire infinitive phrase adds information to order , telling us what kind of order was breached.