This unprecedented move has led to lawsuits from advocacy groups and labour unions aiming to protect federal jobs.