Legal analysts called the outcome a significant defeat for the Bush administration, especially its turning terrorism arrests into publicity events.