The US president says European countries have failed to control migration or take decisive action to end Ukraine’s war with Russia.