Elon Musk, wielding a chainsaw, is overseeing a rapid shrinking of the nation’s largest employer: the federal government.