At Trial, U.S. Traces Roots of Terror Network to Brooklyn