President Donald Trump said the two nations reached the ceasefire after “a long night of talks mediated by the United States.”