Sen. Ted Cruz’s legislation aims to limit deals by entities linked to several nations, including China and Russia.