The temporary measure, during the holy Muslim fasting month, follows tensions as Jewish activists increasingly encroach on the contested religious site.