Universality for the largest eigenvalue of a class of sample covariance matrices