Frederick Merz, leader of the conservative Christian Democrats, is virtually assured of becoming Germany’s next chancellor.