Gen Z and Millennials turn to government jobs to find security amid layoffs