Brownian motion and Dirichlet problems at infinity