Real Madrid CF overcame a sending-off to win 1-0 at Paris Saint-Germain in the first of the quarter-finals.