Harper drives in 2 in return to lineup, Phils beat Pirates