A monthslong G.O.P. effort culminated in a scathing report about emails and other exchanges within the American Psychological Association.