The Polish president has argued that the EU must help Ukraine win its war with Russia, rebuild it afterwards, and for it to become a fully-fledged member of the bloc.