China's influence on the Panama Canal is a major risk to U.S. national security, Sen. Ted Cruz told lawmakers during a Senate hearing on Capitol Hill.