Trump administration officials are defending themselves in court as a federal judge demands explanations for their response to tense protests against immigration enforcement actions in Chicago.