A court order made the Trump administration explain its actions.