HAMBURG, Germany — Angela Merkel’s center-right party elected an ally of the longtime German chancellor as its new leader on Dec. 7, opting for continuity and experience as it handed her the challenge of opening a new chapter and improving the party’s electoral fortunes.