Aggressive tax planning costs governments billions of dollars a year, not helped by an uneven regulatory playing field.