WASHINGTON — President Barack Obama signed the first major overhaul of toxic chemicals rules in 40 years into law on Wednesday, calling it proof that Washington can function despite intense polarization. In a White House signing ceremony, Obama praised both chemicals industry groups and environmentalists alike for finding consensus despite their usual differences of opinion.