the judge gave an explicit order.
CBP just willfully disobeyed it, in the judge's words.
CBP has gone rogue.
They're probably doing this on trump's orders
"Judge Leo T. Sorokin of the Federal District Court in Massachusetts ...
said there was reason to believe U.S. Customs and Border Protection
had willfully disobeyed his previous order
to give the court notice before expelling the doctor."