Michael Cohen, President Donald Trump’s personal lawyer, gained access to as much as $774,000 through two financial transactions during the 2016 presidential campaign as he sought to fix problems for his boss, public records show.

Those transactions could factor into a broad investigation of Mr. Cohen’s business affairs being conducted by Manhattan federal prosecutors and the Federal Bureau of Investigation, who are examining whether Mr. Cohen violated any laws in his efforts to raise cash and conceal negative information...