BOSTON — Tim Duncan, Tony Parker and Manu Ginobili set the NBA record for wins by a trio of teammates on Sunday — and fittingly they did it against the Boston Celtics.

The San Antonio trio helped the Spurs to a 95-87 victory, the threesome’s 541st regular-season win together, snapping a tie with Boston’s Larry Bird-Kevin McHale-Robert Parish trio for the all-time NBA lead.

The three players didn’t have a big scoring day, as free-agent signee forward LaMarcus Aldridge scored 24 points, including three straight baskets that helped stop a late Celtics comeback, and added 14 rebounds and five assists to lead the way for the Spurs (2-1).

The win was San Antonio’s eighth in a row over Boston.

Boston (1-2) kept rallying late after trailing by as many as 15. The Celtics cut the deficit all the way down to four on three occasions late but could get no closer than four in the closing minutes.

The Celtics led once in the game — at 2-0.

Duncan, the forward/center of the trio, scored seven points, grabbed nine rebounds and dished out five assists while guards Ginobili and Parker scored 13 and six points, respectively, and Ginobili added eight assists off the bench.

Forward Kawhi Leonard nailed a big 3-pointer from the left corner and, after guard Marcus Smart answered with a trey for the Celtics, scored again. Parker then converted on a fast break to make it 90-83 with 2:02 left.

Leonard, who had 19 points and five rebounds, iced the game with two free throws with 28.6 seconds left.

The Celtics went 4 of 9 on 3-pointers in the final quarter but had been 2 of 20 in the first 36 minutes.

Guards Avery Bradley and Smart led the Celtics with 18 and 17 points, respectively, while sixth man guard Isaiah Thomas scored 15 points but was just 4 of 18 from the floor.