Robust estimation of the causal effect of time‐varying neighborhood factors on health outcomes