Lowe’s topped quarterly earnings and revenue estimates, but even its raised sales outlook would be a decline from last year.