#4 is indeed the answer, though ' court order' would be more natural. #3 does not work because the court order IS the order; it is not an order ordering another order (if you take my meaning).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.