U.S. equities finished mostly lower following three days of gains that brought record-high territory back to within reach.