The 95th-minute goal snatched injury-hit Los Blancos the 2-1 win, sending them to within one point of leaders Barcelona.