The exchange saw the frustrated Ukrainian president lectured by Mr Trump and vice president JD Vance.