Amazon loses New York sales tax lawsuit