Nvidia Corp. has agreed to buy chipmaker Mellanox Technologies Ltd. for $6.9 billion, gaining expertise to help it push into the growing market for data center components. The $125-a-share cash offer for Mellanox is a 14% premium to the stock’s Friday closing price of $109.38 a share. But traders...