Federal judges and the Justice Department worked together to pick career prosecutor Robert Frazer for the U.S. attorney’s office led by Alina Habba last year.