Jeff Bezos, the founder of Amazon and the richest man in the world, has recently faced the ire of elected officials across the political spectrum, President Trump on the right and Senator Bernie Sanders on the left.

Now, two months before the midterm elections, Mr. Bezos and his wife, MacKenzie Bezos, are making by far their biggest known campaign contribution to a political group that plays right down the middle.

The couple are donating $10 million to the With Honor Fund, a so-called super PAC that supports military veterans running for Congress who vow to take a cross-party approach to governing. The group has endorsed 33 candidates running this year — 14 Republicans and 19 Democrats.

In 2012, the Bezoses gave $2.5 million to support a successful referendum proposal that legalized same-sex marriage in Washington State. Mr. Bezos’ other federal campaign donations have largely been to political action committees tied to Amazon and Blue Origin, his space exploration company, and a few small donations to a mix of Democratic and Republican federal lawmakers.