The company is also investing $23 billion in U.S. manufacturing capacity to offset President Donald Trump's tariffs.