Liberals hate Donald Trump’s demanding and sometimes petulant approach to foreign policy. But it may have achieved what Joe Biden and Kamala Harris could not, writes John Bowden