The Trump administration, in court filings, has for the first time acknowledged that it fired nearly 25 000 recently hired workers and said federal agencies were working to bring all of them back after a judge ruled their terminations were likely illegal.