The president urged Middle Eastern states to help maintain regional stability after Lebanon's leader left office.