Judge’s 60th homer sparks 5-run 9th, Yanks stun Pirates 9-8