The comments amounted to a major reorientation of US policy as President Donald Trump looks for ways to bring the war in Ukraine to an end