Ruling Social Democratic Party leader appointed prime minister