US President Joe Biden said Israel and Hamas are “on the brink” of a Gaza ceasefire deal.