Toyota has agreed to settle a damages lawsuit for a class-action over injuries and deaths linked to unintended sudden vehicle acceleration, the carmaker said.