As federal services deteriorate, a patchwork of private companies is taking their place — for better or for worse.