The Dodgers fell to 39-20 on the season as the Phillies are 33-22, which remain the top two records in baseball, respectively.
Phillies rookie Antonio Bastardo earned his second win of the season by going five innings with seven hits allowed and four strikeouts. Dodgers' starter Randy Wolf (3-2) was relieved in sixth after giving up a two-run home run by Ruiz and a solo home run by Victorino.
The Dodgers' offense, who produced two come from behind victories in the last two days, finally caught up with them. Phillies relievers Chan Ho Park and Ryan Madson only allowed two hits in the final four innings. Casey Blake went 2-for-4 with one run, while Matt Kemp was 1-for-4 with one RBI for the Dodgers.
Jimmy Rollins, who batted lower than fifth for the first time since May 2006, ended his 14-game hitless streak with runners in scoring position with a two-run single in the second inning for the Phillies.
Howard tied Washington Nationals' Adam Dunn with 17 home runs.
The Dodgers get the day off tomorrow then host a three-game series with the San Diego Padres on Tuesday.
The Padres are 11 and-a-half games behind the Dodgers and hold a 8-19 road record.