As Companies Seek Tax Deals, Governments Pay High Price