WASHINGTON—A top lawyer for President Trump this year sought to help pay legal fees for Paul Manafort and Richard Gates, initially trying to divert money from the White House legal defense fund and later soliciting donors and pledging $25,000 of his own.

In both cases, the president’s advisers objected to the lawyer’s actions over concerns it could appear aimed at stopping the two former aides from cooperating with investigators.

John...