Thousands of federal workers are getting layoff notices as the Trump administration’s sweeping cost-cutting measures reverberate across the government.