Lowe’s said it faces housing-market headwinds and near-term economic uncertainty, but kept its 2025 earnings projections in place.