New York Stock Exchange ends day with decline