Israel and Lebanon have agreed to extend their ceasefire by three weeks, with the US president saying talks at the White House went “very well.”