US stock market closes at record with stimulus optimism