Amazon, Texas reach deal to settle sales tax spat