AP Photo/Charles Rex Arbogast

Federal Judge William Orrick III, who on Tuesday blocked President Trump's order to withhold federal funds from sanctuary cities, reportedly bundled hundreds of thousands of dollars for President Barack Obama.

Orrick, of the Northern District of California, issued an injunction against the Trump administration after the city of San Francisco and county of Santa Clara sued over the president's plan to withhold federal funds from municipalities that harbor illegal immigrants.

As FoxNews.com reported:

The ruling from U.S. District Judge William Orrick III in San Francisco said that Trump's order targeted broad categories of federal funding for sanctuary governments, and that plaintiffs challenging the order were likely to succeed in proving it unconstitutional. The decision will block the measure for now, while the federal lawsuit works its way through the courts. The news comes on the heels of the Department of Justice threatening on Friday to cut off funding to eight so-called “sanctuary cities,” unless they were able to provide proof to the federal government that they weren’t looking the other way when it came to undocumented immigrants.

The same judge issued a restraining order in 2015 against the advocacy group responsible for undercover videos purporting to show Planned Parenthood employees plotting to sell baby organs.

At the time, The Federalist found that Orrick raised at least $200,000 for Obama and donated more than $30,000 to groups supporting him.

NYC Prosecutor: Deportation Should Not Be Penalty for Low-Level Crimes

Elizabeth Warren Defends Coulter: 'Let Her Speak-- Just Don't Show Up'

Pres. Trump: 'The Wall Is Gonna Get Built, Folks'

Article continues below

Orrick, 63, also raised money for the failed presidential bid of then-Sen. John Kerry (D-Mass.) in 2004.

In 2015, President Obama vowed to veto legislation that would have cracked down on sanctuary cities.

Judicial Watch also reported that Obama's Justice Department granted more than $340 million to sanctuary municipalities as of 2016.

Make Profanity Great Again? Cursing Is Becoming a Staple of Dems' Rhetoric

LOOK: Dem Lawmaker Trolls Trump With 'Trump-Putin 2016' T-Shirt

AZ Ranchers Fire Back After Pelosi Calls Border Wall 'Immoral' & 'Unwise'