News organisations are challenging the law, arguing it could hamper investigative journalism and endanger sources.