Nasdaq, S&P 500 gain as Powell wraps up testimony