The law will ban the manufacture and sale in California of personal care products that contain 24 toxics, including asbestos, formaldehyde and lead, and is expected to fill a gap in federal regulation as companies sell the new formulations nationwide.