The main purpose of this legislation is to enhance cooperation among the United States, Canada, and Mexico regarding the review of foreign investments for national security risks. It aims to ensure that all three countries have similar frameworks in place to evaluate these investments, thereby strengthening their collective national security and economic ties under the United States-Mexico-Canada Agreement (USMCA).