Israel and Jordan have agreed on moves aimed at reducing tensions surrounding a prominent holy site in Jerusalem.