US federal judge blocks dismissal of intelligence officers for diversity work