Crawford’s HR with 2 outs in 9th lifts Giants past D-backs