Stocks end mostly flat as oil prices pull back and investors continue to monitor the latest developments out of the Middle East.