Israel's security cabinet has decided to remove metal detectors set up at the entrance to a Jerusalem holy site which had angered Muslims.