The directive sparked division among government officials and caused chaos and confusion among the federal workforce.