Tesla recalled more than 1.8 million vehicles because of a hood issue that could increase the crash risk.