Shares drifted up as investors took stock of a Greek refinancing deal and continued improvement in the U.S. labor market.