Ukraine's president confirmed a temporary ceasefire with Russia, brokered by the United States, set to last three days and accompanied by a mutual release of prisoners — the first such agreement to emerge from direct diplomatic engagement in a prolonged and destructive conflict.