President Donald Trump’s campaign said Wednesday that it had filed lawsuits to halt the counting of ballots in Michigan and Pennsylvania.

The Trump campaign will ask the Supreme Court to intervene in a case that challenges the Pennsylvania Supreme Court decision to allow the counting of ballots after Election Day.

“The time has come. Given last night’s results, the vote in Pennsylvania may well determine the next President of the United States,” Trump's lawyer Jay Sekulow said in the new filing.

“And this Court, not the Pennsylvania Supreme Court, should have the final say on the relevant and dispositive legal questions," Sekulow said.

As for Michigan, Trump's campaign manager Bill Stepien argued that the campaign had not been given "meaningful access" to observe the opening of ballots, according to reports.

"We have filed suit today in the Michigan Court of Claims to halt counting until meaningful access has been granted," Stepien said in a statement. "We also demand to review those ballots which were opened and counted while we did not have meaningful access. President Trump is committed to ensuring that all legal votes are counted in Michigan and everywhere else."

The announcement comes as Trump faces an ultra-tight race against Democratic presidential nominee Joe Biden in many key swing states.

Biden is projected to win the battleground state of Michigan, which has 16 electoral votes. CNN and NBC on Wednesday called the race for Biden shortly before 4:30 p.m. ET.

Trump also suggested, without any evidence, that Michigan had “found” ballots to deny a victory to John James, the Republican nominee for the Senate race in Michigan.

In Pennsylvania, Trump leads Biden, 52.2% to 46.5%, with 83% of the votes reported, according to the New York Times. Biden has cut into Trump's lead as more votes are counted.

Trump officials falsely announced he won Pennsylvania while ballots were still being counted.