The ruling comes a day after the commander attended federal court to address questions about a series of aggressive immigration actions.