The company is building a new Silicon Valley campus as it looks to stave off competition in artificial-intelligence servers.