US stocks close higher after Fed chair's comments