Friedrich Merz is on course to become post-World War II Germany’s 10th chancellor, the culmination of a yearslong political career that was once sidelined by his party’s iconic leader