For some reason this does not work:
Copy$category->setIsActive(false);
$category->setIsActive(false);
You must use this instead:
Copy$category->setIsActive(0);
$category->setIsActive(0);