President Trump’s financial gatekeeper was granted immunity by federal authorities in New York and testified before a grand jury, the third longtime confidant of Mr. Trump known to have provided information in an illegal hush-money investigation that has implicated the president.

Allen Weisselberg, who has served for decades as chief financial officer and executive vice president of the Trump Organization, testified several weeks ago in the criminal investigation by federal prosecutors in Manhattan into Michael Cohen, Mr....