The court found that lawyer Lindsey Halligan had been illegally appointed to her role as acting US attorney under Trump.