Members of the Trump administration and a government transparency group agreed to dismiss a lawsuit seeking to preserve messages exchanged by administration officials on Signal.