Toyota to pay $1.2bn in safety-probe deal