SAN FRANCISCO — Taiwan Semiconductor Manufacturing Company has agreed to build an advanced chip factory in the United States, in a response to the Trump administration’s growing concerns about the