The top federal prosecutor in Brooklyn will be nominated to succeed Eric H. Holder Jr. as attorney general.