Pirates rally by Phillies 2-1 in 10 innings