Toyota has agreed on a more than $1 billion compensation deal to settle a legal case involving unintended acceleration problems…