Absorbing-State Phase Transition for Stochastic Sandpiles and Activated Random Walks