A federal judge says he will order the Trump administration to preserve records of a text message chat in which senior national security officials discussed sensitive details of plans for a U.S.