Donald Trump. Mark Wilson/Getty Images In a series of tweets Wednesday morning, President Donald Trump went after rulings that judges had made against his proposed travel ban and his administration's fight against so-called sanctuary cities.

"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.

A federal judge issued a preliminary injunction Tuesday afternoon blocking an executive order Trump signed on January 25 threatening to withhold federal grant money from jurisdictions that refused to comply with federal immigration law.

Tuesday's temporary ruling came out of California's Northern District, whose cases are appealed to the Court of Appeals for the Ninth Circuit.

San Francisco and Santa Clara County had sued the Trump administration last month, arguing that the order threatened a loss of billions of dollars in federal funding and threw their budget planning into chaos.

The Ninth Circuit denied an emergency appeal from the Department of Justice in February to restore Trump's travel order temporarily barring entry to the US by citizens from several mainly Muslim countries and by all refugees.

The president continued his tweeting Wednesday morning, railing against the Ninth Circuit.

"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, which has a terrible record of being overturned (close to 80%)," Trump tweeted. "They used to call this 'judge shopping!' Messy system."

The White House chief of staff, Reince Priebus, also hinted that the administration would take further action against sanctuary cities, telling reporters Tuesday evening that the decision was "the Ninth Circuit going bananas."

"We'll win at the Supreme Court level at some point," Priebus said. "We're taking action to appeal this. You'll find out soon enough."

Michelle Mark and Mark Abadi contributed reporting to this story.