The measure, expected to be signed by the president, requires new testing of thousands of chemicals used in everyday products, but at a fairly slow pace.