A voluntary deal with federal regulators will put the feature in most cars and light trucks within six years, and in heavier vehicles two years later.