President Trump ripped the Tuesday decision by a federal court to strike down his executive order blocking federal funding from sanctuary cities, in a series of tweets Wednesday morning.

Trump criticized the 9th Circuit for rendering two objectionable rulings: the Tuesday decision on sanctuary cities, and the appeals court decision that took down his immigration order.

First the Ninth Circuit rules against the ban & now it hits again on sanctuary cities-both ridiculous rulings. See you in the Supreme Court! — Donald J. Trump (@realDonaldTrump) April 26, 2017



"First the Ninth Circuit rules against the ban & now it hits again on sanctuary cities-both ridiculous rulings. See you in the Supreme Court!" Trump tweeted. The sanctuary city ruling was made by a federal judge in San Francisco, and the ruling would be appealed to the 9th Circuit Court of Appeals if the administration presses the case.

Trump also accused his opponents of bringing cases in the 9th Circuit on purpose, since that circuit has a history of being friendly to Democrats.

Out of our very big country, with many choices, does everyone notice that both the "ban" case and now the "sanctuary" case is brought in ... — Donald J. Trump (@realDonaldTrump) April 26, 2017

...the Ninth Circuit, which has a terrible record of being overturned (close to 80%). They used to call this "judge shopping!" Messy system. — Donald J. Trump (@realDonaldTrump) April 26, 2017



"Out of our very big country, with many choices, does everyone notice that both the 'ban' case and now the 'sanctuary' case is brought in the Ninth Circuit," Trump tweeted, "which has a terrible record of being overturned (close to 80%). They used to call this 'judge shopping!' Messy system."

The decision on Tuesday ruled Santa Clara, Calif., and San Francisco would suffer irreparable harm if they had federal funds withheld. The judge wrote only Congress can make decisions on monetary policy, including which cities get federal funding, not the president.

At least five other cities have similar lawsuits pending.

The federal courts have stymied Trump's immigration agenda. He had two immigration orders that would have banned refugees and immigrants from six majority-Muslim countries — seven in the first order — struck down by federal courts earlier this year.