Curtis Richardson doesn’t play much golf these days. But there he was, tramping through the rough and scrutinizing each hole at courses along the North Carolina coast.

The director of the Duke University Wetland Center was collecting soil and water samples for a client he never expected: The Internal Revenue Service.

The IRS has been battling...