(Reuters) - The benchmark U.S. S&P 500 stock index ended up slightly on Monday after two days of declines, though a drop in oil prices weighed on energy shares and tensions between the United States and North Korea kept investors on edge.