U.S. equities closed lower as investors digested key economic data, but a rise in tech stocks helped cap losses.