State and city officials are opening local jobs to feds to try to lessen the economic fallout from a mass exodus of workers.