The international minimum tax agreement known as Pillar Two is changing how countries compete for corporate investment, in part by prompting some governments to retool their tax credit systems in ways that could edge out jurisdictions with fewer resources.