President Trump on Wednesday questioned how well New York and Virginia will fare in their deals to house Amazon headquarters.