The Slovakian leader was a critic of the EU's response to the war in Ukraine before his election in 2023.