For decades, nations competed to attract businesses with tax breaks. A new agreement among OECD countries is about to change that.