Shares gain, dollar firm as Fed sticks to agenda of near-zero rates