The UN Security Council has called for an immediate ceasefire in Gaza, after the US did not veto the measure in a shift from its previous position.