National security, economics gets complicated as foreign investments filter in for new tech