President Donald Trump has offered many federal workers a buyout in a gambit to improve government efficiency.