The appointment breaks a deadlock that has left the country without a head of state since October 2022.