Decades ago, the C.I.A. recruited and carefully cultivated a midlevel Russian official who began rapidly advancing through the governmental ranks. Eventually, American spies struck gold: The longtime source landed an influential position that came with access to the highest level of the Kremlin.