New York Sen. Chuck Schumer claimed he created the “diversity visa program” that let New York City’s latest terror suspect into the United States, and bragged that the city “dramatically benefited from this program.”

In a 2006 Senate speech where he was cheering that year’s version of immigration reform, Schumer also called it an “excellent program,” that only good immigrants would use.

“I believe every immigrant is special because they, or all of us who descend from them, come from a special group of people who had the guts and the gumption to get off their butts and basically come to America. They said: I don't want to lead this disease-ridden, impoverished life. I am willing to come here and take a risk. That is one of the reasons America is a special place — the idea of bringing new seed to this country, people who are willing to risk everything, is great,” Schumer said in a Senate floor speech on May 24, 2006.

“In fact, my city of New York has dramatically benefited from this program, and diverse countries such as Ireland, Poland, and Nigeria have had large numbers of immigrants to be able to come, set roots, and help the diversity of New York and of America,” he added.

In the speech, he took credit for the program that President Trump blasted in a tweet Wednesday. Schumer said, “As a member of the House, I helped create this program, which my colleague, Sen. Kennedy, created in the Senate in 1990.”

Trump tweeted, "The terrorist came into our country through what is called the 'Diversity Visa Lottery Program,' a Charles Schumer beauty.”

Officials today said that Sayfullo Saipov, accused of driving a truck through bicyclists and pedestrians in New York yesterday, came to the U.S. in 2010 from Uzbekistan under the program that gives visas to people from countries with few immigrants in the United States.

In arguing against an amendment that would have killed his diversity visa, Schumer said in his 2006 speech, “As I ride my bike around New York City on the weekends, I see what immigrants do for America. This program has dramatically helped. Neighborhoods such as Woodlawn and Greenpoint have been revitalized by new Irish and Polish immigrants. Neighborhoods such as East Flatbush and Harlem have been revitalized by West African immigrants. We don't have to stop this program.

Paul Bedard, the Washington Examiner's "Washington Secrets" columnist, can be contacted at pbedard@washingtonexaminer.com