The extinction law at high redshift and its implications