Invariant approximation for CAT(0) spaces