Five Democratic senators pilloried the plan for replacement workers as potentially putting the nation’s military at risk.