President Trump on Monday said he would appeal a federal judge’s decision upholding a subpoena for his financial records, blasting it as a “crazy” ruling by “an Obama-appointed judge.”

“We will appeal it,” Trump told reporters at the White House before leaving for a campaign rally in Pennsylvania. “It’s totally the wrong decision by, obviously, an Obama-appointed judge.”

The ruling by U.S. District Judge Amit Mehta comes when the White House and Trump’s attorneys refused to cooperate with congressional requests for information and records. Earlier Monday, Trump directed former White House counsel Don McGahn to defy a congressional subpoena that had compelled McGahn, a pivotal figure in special counsel Robert Mueller’s investigation, to testify before the House Judiciary Committee on Tuesday.

President Trump told reporters before leaving the White House for a Monday night rally in Pennsylvania that “we think it’s totally the wrong decision by, obviously, an Obama-appointed judge.”

In ruling, Mehta said the Democratic-led House Oversight and Reform Committee had “valid legislative purposes” for its request and that it was not for him “to question whether the Committee’s actions are truly motivated by political considerations.” The committee has said the records will help it consider whether to strengthen ethics and disclosure laws, among other things, said Mehta, who was nominated to the bench by President Barack Obama.

Trump’s lawyers, in cases from Washington and New York challenging the Democrats’ demands, argued that congressional investigations are legitimate only if there is legislation that might result from them. “There is no possible legislation at the end of this tunnel,” his legal team said.

The White House made the same argument Friday when Treasury Secretary Steven Mnuchin said he would not comply with a congressional subpoena for six years of Trump’s tax returns.

This article was edited by TheBL.