Mr. Trump has regularly criticized Mr. Bezos, both for his role at Amazon and for his ownership of The Washington Post, which he bought in 2013. Mr. Trump has accused Amazon of sidestepping taxes and The Post of covering him unfairly.

Don Graham, the publisher of The Post when Mr. Bezos bought the paper, is a founder of Dream.US.

Mr. Bezos said in a statement that the donation was inspired by the example of his father, Miguel, who came to the United States from Cuba in the early 1960s as part of a wave of thousands of unaccompanied minors.

“My dad came to the U.S. when he was 16 as part of Operation Pedro Pan,” Mr. Bezos said in the statement. “He landed in this country alone and unable to speak English. With a lot of grit and determination, and the help of some remarkable organizations in Delaware, my dad became an outstanding citizen, and he continues to give back to the country that he feels blessed him in so many ways. MacKenzie and I are honored to be able to help today’s Dreamers by funding these scholarships.”

Mr. Bezos is not the first wealthy technology executive to donate to Dream.US. Two years ago, Mark Zuckerberg, Facebook’s chief executive, and his wife, Priscilla Chan, gave the group $5 million.