NEW YORK (Reuters) – Stocks ended lower on Wall Street on Wednesday, as energy shares tracked oil prices lower, and the S&P posted a loss for August, the first negative month for the benchmark index since February.