The UN Security Council appears to have overcome its divisions and is close to passing a Gaza ceasefire resolution.