Eder Militao headed Real Madrid into a first-half lead