President Trump on Friday gave the OK for Congress to release a memo that accuses the feds of illegally spying on former campaign aide Carter Page — calling it “a disgrace” and defying his top appointees in the FBI and Justice Department, CNN reported.

Speaking later at the White House, the president repeatedly said “a lot of people should be ashamed” by its contents, without elaborating or naming names.

“I think it’s terrible. I think it’s a disgrace what’s going on in this country. I think it’s a disgrace,” he said.

He said it’s now up to Congress to decide what happens next — though the GOP-controlled House Intelligence Committee has been champing at the bit to get it out.

“The memo was sent to Congress, it was declassified. Congress will do whatever they’re going to do, but I think it’s a disgrace what’s happening in our country. And when you look at that, and you see that and so many other things going on, a lot of people should be ashamed of themselves, and much worse than that,” he said, again without elaborating.

“So I sent it over to Congress. They will do what they’re going to do. Whatever they do is fine. It was declassified, and let’s see what happens. But a lot of people should be ashamed.”

The president had tweeted earlier in the day, accusing his top G-men and Justice officials of politicizing the ongoing investigation into Russian interference in the US presidential election and possible ties to his campaign.

“The top Leadership and Investigators of the FBI and the Justice Department have politicized the sacred investigative process in favor of Democrats and against Republicans – something which would have been unthinkable just a short time ago. Rank & File are great people!” Trump tweeted.

His tweet came as the morning news shows were dominated by reports that the FBI and DOJ had objected strenuously to the memo’s release. Earlier this week, the FBI declared it has “grave concerns” about its accuracy.

Trump’s tweet also sets up a showdown with the man he picked to lead the FBI, Christopher Wray, after firing James Comey as agency director.

The memo was prepared by House Intelligence Committee Chair Devin Nunes, who says it shows the feds had a political agenda.

Democrats say Nunes cherry-picked information and left out details that would contradict what they call a bogus narrative.