A federal judge has temporarily blocked Donald Trump's plan to get rid of government employees by offering them a payout.