A recent wave of legal challenges is putting renewed pressure on journalists and raising concerns about the future of investigative reporting.