Center-right politician Friedrich Merz was elected chancellor after an unprecedented two rounds of voting in the German parliament.