A federal judge on Friday dismissed a lawsuit the former president filed that sought to halt the New York attorney general's civil investigation into his business practices.

The second defeat for Mr. Trump related to the investigation occurred in federal court in Albany. On Thursday, an appellate court ordered Mr. Trump and two of his children to sit for questioning under oath from the office of the state attorney general.

The rulings clear the way for Ms. James to complete her investigation. Ms. James does not have the power to bring criminal charges against Mr. Trump or his family, but she can file a lawsuit if she believes they committed fraud.

One of her lawyers said last month that the office was preparing an enforcement action in the near future.

It's not clear if Mr. Trump will appeal either of the rulings. His lawyers didn't respond to requests for comment.

The courts have made it clear that Donald J. Trump's legal challenges cannot stop our investigation into his and the Trump Organization's financial dealings. We will continue this investigation, as we have said all along.

Lawyers for Mr. Trump filed a federal lawsuit in December, arguing that Ms. James had violated several of his constitutional rights.

The judge rejected Mr. Trump's claim that Ms. James had violated his rights.

Ms. James had made a number of public statements against Mr. Trump.

The judge said that Ms. James' comments were not enough to prove that the attorney general had violated Mr. Trump's rights.

There was no evidence that the subpoena enforcement proceeding was conducted in a way that constituted harassment.

Mr. Trump called Ms. James a witch hunt.

Her investigation is focused on his annual financial statements, which contain estimated values of his golf courses, hotels and other properties. Ms. James is looking into whether Mr. Trump and his company inflated their values to get loans and other benefits.

Card 1 of 6

An empire is under scrutiny. The New York State attorney general is currently investigating Donald J. Trump's business practices. This is what to know.

The inquiry's beginning. The investigation began after Michael D. Cohen, Mr. Trump's former personal lawyer, testified to Congress.

Mr. Trump has a lawsuit. In December, Mr. Trump sued Ms. James. The attorney general's involvement in the inquiry is politically motivated according to the suit.

There was a contempt ruling. The judge ordered Mr. Trump to give the records and to be fined $10,000 per day until he did so. The judge withdrew the order after Mr. Trump paid the fine.

In a court filing this year, Ms. James revealed that Mr. Trump's accounting firm had cut ties with him.

She argued that the Trump Organization had engaged in fraudulent or misleading practices. Before they could decide whether to file a lawsuit, her lawyers needed to collect more records and testimony from Mr. Trump.

Mr. Trump was held in contempt of court for failing to comply with the subpoena. The contempt order was recently released after Mr. Trump paid a fine.

Mr. Trump and two of his children were ordered to be interviewed by Ms. James. The New York State appeals court upheld the order on Thursday.

The Manhattan district attorney's office is investigating some of the same business practices that Ms. James is looking into.

Prosecutors stopped presenting evidence about Mr. Trump to a grand jury early this year.