The main purpose of the Contracting America First Act is to restrict federal agencies from entering into contracts with software companies that are owned by foreign entities. The goal is to protect sensitive personal information and enhance national security by ensuring that certain software systems are developed and managed by companies with U.S. ownership. Key provisions of the Act include a prohibition on federal contracts for specific software systems with internationally owned companies.