The UN Security Council has endorsed a resolution urging an immediate ceasefire between Gaza and Israel to address the ongoing conflict.