The reversal of firings is the latest defeat that the Trump administration has incurred in its effort to close down the federal news organization.