‘A great Madrid’
Racing won a penalty after Madrid’s Aurelien Tchouameni handled in the box, but the award was cancelled after a VAR review.
Bellingham had a second goal ruled out in stoppage time after he strayed offside before finding the net and Endrick bent an effort narrowly wide from distance.
Hosts Racing, 16th, back in La Liga for the first time in 14 seasons, fell to their first home defeat of the campaign.
Earlier Sevilla, sixth, suffered a 3-1 loss at Getafe, who moved into mid-table.
“(Madrid’s penalty award) annoys me,” Racing coach Jose Alberto told DAZN.
“Evidently we came across a great Madrid, who put us under a lot of pressure in the first half hour, and were much better than us, but what conditions everything was the first goal and the penalty.”
Valencia, 19th, beat Elche 1-0 with a well-taken goal from Umar Sadiq to move to within a point of safety after a bad start to the season.
Elsewhere Athletic Bilbao, seventh, edged fifth-place Real Sociedad 2-1 in an entertaining Basque derby clash at San Mames stadium.
Inaki Williams lobbed Athletic ahead early on before Luka Sucic drilled home from the edge of the box to level.
Alex Berenguer controversially restored Athletic’s advantage just before half-time from the penalty spot, after Jon Aramburu was adjudged to have fouled Nico Williams, although he appeared to win the ball.
“I think it’s incredible that a penalty like that is given when I touched the ball, even Nico said it,” complained Aramburu to DAZN.
Spanish World Cup-winning goalkeeper Unai Simon made several fine saves to ensure Los Leones claimed the three points.