The loss of expertise is making it harder for many agencies to carry out their work and serve the American public.