When F.B.I. agents raided the New Jersey home of Senator Robert Menendez and his wife, they found envelope after envelope of cash, a federal prosecutor told a jury on Monday. Cash stuffed in bags, cash stuffed in the pockets of the senator’s jackets, cash stuffed in his boots. Gold bars worth thousands of dollars.

The valuables were bribes that two businessmen paid to the couple in exchange for promises of official action by Mr. Menendez, the former chairman of the Senate Foreign Relations Committee, the prosecutor, Paul M. Monteleoni, said.

“It wasn’t enough for him to be one of the most powerful people in Washington,” Mr. Monteleoni told jurors. “It wasn’t enough for him to be entrusted by the public with the power to approve billions of dollars of U.S. military aid to foreign countries.”

“No, Robert Menendez wanted all that power,” he added. “But he also wanted to use it to pile up riches for himself and his wife.”

“So, Menendez sold the power of his office,” he said.

The prosecutor’s closing statement came as the trial of Mr. Menendez, 70, and the two businessmen — Wael Hana and Fred Daibes — entered its ninth week in Federal District Court in Manhattan. Prosecutors say Mr. Hana and Mr. Daibes were enriched in the scheme and helped to funnel bribes to the senator and his wife, Nadine Menendez, 57.

In exchange, the indictment says, Mr. Menendez steered aid and weapons to Egypt, used his political clout to help the government of Qatar, propped up Mr. Hana’s lucrative halal certification business monopoly and sought to disrupt several criminal investigations in New Jersey on behalf of Mr. Daibes, a real estate developer, and another ally, Jose Uribe, a former insurance broker.