The nationalist, who was endorsed by President Trump, has long been hostile to Poland’s centrist government.