Securing a ceasefire before taking office cleared a "major issue" from Trump’s agenda for his second term.