F.B.I. Apologizes to Court for Botching Surveillance of Trump Adviser, and Pledges Fixes