Countries have agreed on new measures to speed up efforts aimed at preventing the harmful effects of chemical products on health and the environment, the U.N. said.