Public services to take hit as Amazon wins £3.2m tax wrangle