Legality of Amazon's tax deal with Texas questioned