“We cannot allow humanism to be replaced by algorithms,” the Brazilian president said after signing the new law.