Home Depot beat fiscal fourth-quarter earnings expectations after missing estimates the prior three quarters.