NXP Semiconductors NV is teaming up with a company partly owned by Taiwan Semiconductor Manufacturing Co. to build a $7.8 billion chip wafer plant in Singapore, marking a boost for the island nation’s tech ambitions.