Consistency of semiparametric maximum likelihood estimators for two‐phase sampling