Carleson measure estimates and the Dirichlet problem for degenerate elliptic equations