Federal judges appointed Robert Frazer to run New Jersey’s U.S. attorney’s office, which has been in disarray over the past year because of uncertainty about who was in charge.