Wall Street extends rally, posts strong monthly gains