The Czech president on Friday appointed Social Democrat leader Bohuslav Sobotka as prime minister after months of political stalemate sparked by a bribery and spying scandal.