Orioles beat Phillies 5-4 in 10 innings