Federal Reserve Chair Jerome Powell’s nuanced take on the economic outlook helped lift stocks on Wednesday.