A US judge has temporarily halted President Donald Trump's plan offering incentives to federal workers to voluntarily resign before a Thursday midnight deadline.