A.P. in Deal to Share Investigative Work From Nonprofit Groups