The Trump administration has ordered agencies to lay off nearly all federal employees hired within the last one or two years as it takes steps to shrink the size of the federal workforce.