Israel's cabinet authorises police to seal off "parts of Jerusalem" in an attempt to halt a wave of deadly attacks.