A very dangerous move. To directly say that he cant obey a court order is unpredecented. He's not above the law, but who is going to do anything?
The court can impose sanctions such as penalty for non compliance. But the most important is the legislature where impeachment process can begin for disobeying a court order. But that is where DEADWOOD lie. Even if he did not agree with it, there are other ways....