A federal judge temporarily blocked President Donald Trump’s plan to push out federal workers by offering them financial incentives.