Tesla is recalling 20,000 Model 3 and Model Y vehicles with low-beam headlights that violate federal brightness standards.