WASHINGTON—The Treasury Department will allow some nonprofit groups to provide less information about donors on their tax forms in a win for conservative organizations engaged in politics.

Until now, nonprofit groups, including charities and trade associations, had to list contributors who give at least $5,000 on what is known as Schedule B. The IRS received the complete version, and the groups publicly released redacted forms without identifying information about donors.

Under...