The high court orders some immediate changes to the law that allows government to intercept people’s phones and correspondence