Pro-European conservative Peter Magyar has become Hungary's prime minister with a commanding majority, pledging to tackle corruption and restore Hungary's access to blocked European Union funds — a major shift from the country's long-running nationalist government.