US stock market: Wall Street ends up led by profits from Amazon, other growth stocks amid inflation fears