Tesla is the first big customer to publicly announce using Samsung Electronics’ new Texas chipmaking factory, and it is an important vote of confidence for the troubled manufacturer.