When the online retailer sought hefty tax incentives from officials in Orange County, N.Y., a fierce battle ensued.