Days after its CEO met with President Donald Trump, Apple said Monday that it planned to spend $500 billion in the United States over the next four years, hire 20,000 people and open a new factory in Texas to make the machines that power the company’s push into artificial intelligence.

“We are bullish on the future of American innovation, and we’re proud to build on our long-standing U.S. investments,” Tim Cook, Apple’s CEO, said in a statement.

Cook met with Trump last week. Afterward, Trump said the company would shift production to the United States. “They’re going to build here instead because they don’t want to pay the tariffs,” Trump said in a speech to a gathering of governors.

Most iPhones are manufactured in China by Taiwanese electronics giant Foxconn. This month, U.S. tariffs of 10% on all Chinese products took effect. Levies on imports from Canada, Mexico and other major trading partners could be imposed in the coming weeks.

Foxconn has spent millions of dollars over the past two years building up its operations outside of China, including in Texas, and in Mexico, where the company already assembles AI servers. The company’s chair previously said this expanded footprint would help insulate Foxconn against U.S. tariffs.

Apple said it would begin assembling advanced servers “previously manufactured outside the U.S.” at a new, 250,000-square-foot facility in Houston. The facility is slated to open next year, Apple said, and “will create thousands of jobs.” As the company rolls out AI features in its devices, it also plans to expand its data center operations in Arizona, Iowa, Nevada, North Carolina and Oregon.