Phillies win again in 9th, beat D-backs