Auto safety regulators are investigating Tesla Inc. over incidents in which its vehicles drove through red lights and violated other traffic laws while using the company’s partial-automation software.