The new deal requires police and security agencies to seek a warrant before accessing the call logs and other metadata of journalists in certain cases.