The ruling came hours before lawyers said the CIA was set to issue termination notices to workers at its now-shuttered diversity and inclusion office.