Wall Street posts gains as investors eye rate outlook