President Trump congratulated conservative Brian Hagedorn after the judge declared victory in Wisconsin’s Supreme Court race earlier this week.

“Congratulations to Brian Hagedorn on his big surprise win over a well funded Liberal Democrat in the Great State of Wisconsin for a very important Supreme Court seat. Republicans are producing big for Wisconsin!” Trump wrote in a tweet as he was traveling to California on Friday.

Hagedorn had a narrow lead over fellow appeals court Judge Lisa Neubauer on Wednesday morning, with the unofficial results within the margin for a recount. If Hagedorn maintains his lead, the conservative majority on the state’s Supreme Court will expand from 4-3 to 5-2.

"We made history," Hagedorn, 61, said in a press conference. "We made history in a significant way, and our margin of victory looks to be insurmountable."

Neubauer, 61, led by wide margins in Democratic-held congressional districts that include Milwaukee and Madison, but Hagedorn, who has been on the Wisconsin Court of Appeals since 2015, carried the majority in more rural parts of the state. Neubauer was elected to the appeals court in 2008.

Hagedorn is an evangelical Christian and former chief legal counsel to Republican Gov. Scott Walker.