The agency’s recent decision to ban formaldehyde in hair-straightening products comes 12 years after researchers raised alarms about its health risks.