Biden faces repair job at U.S. spy agencies after tumult under Trump