Rockies outlast D-backs in 10 innings