Negotiators are on “the brink” of an agreement to end the fighting and free hostages, according to President Biden.