Causal Estimation with Functional Confounders