But he also denounced the policy