NEW YORK — The family real estate company once run by presidential adviser Jared Kushner is shifting a federal court case to a new venue so it won’t have to reveal the identities of foreign partners behind some of its real estate projects.

With a deadline approaching within hours, the Kushner Cos. filed papers in federal court Friday to move the case involving Maryland apartment complexes it owns with foreign investors back to state court.

A federal district court judge ruled in January that the Kushners had to identify the partners by Friday, rejecting arguments from the family company that such disclosures would violate privacy rights.

The Kushner Cos. had also argued that media coverage of the case was “politically motivated” and marked by “unfair sensationalism” given that the company was once run by Jared Kushner, now a senior adviser to his father-in-law, President Trump.

But the judge sided with a motion from The Associated Press and other media organizations that argued the public right to know held sway.

The case has attracted media attention because it promised a rare glimpse into how New York-based Kushner Cos. raises money for its real estate projects, revealing ties to lenders and investors who could possibly raise conflict-of-interest issues.

The Kushner Cos. is privately held and so little is known about the identity of partners investing alongside it, and thus if they have any regulatory or other matters before the federal government.