One of Donald Trump’s closest allies on Wall Street is a now-struggling German bank.

While many big banks have shunned him, Deutsche Bank AG has been a steadfast financial backer of the Republican presidential candidate’s business interests. Since 1998, the bank has led or participated in loans of at least $2.5 billion to companies affiliated with Mr. Trump, according to a Wall Street Journal analysis of public records and people familiar with the matter.

...