Controversial laws will take effect with the new year in California