Hillary Clinton got another dose of bad news when a federal judge late Wednesday ordered the Obama administration to make public a new batch of emails just two weeks before the Democratic convention.

Judge Ketanji Brown Jackson directed the US Agency for International Development to give the Republican National Committee whatever records it could by July 11 as part of the RNC’s public records lawsuit that seeks to determine whether the Clintons’ family foundation influenced actions by USAID, The Hill reported.

After that July 11 deadline, USAID will need to work with the State Department to examine hundreds of other pages of documents, which could be released in the future if the judge orders it.

The latest setback to Team Clinton’s effort to downplay the controversy over her home-brew private email server comes just a week after the State Department inspector general released a damning report that her use of the private server to conduct secret government business violated policies.

The RNC sued USAID in March, to get its hands on communications between agency brass and ex-top aides at the State Department, as well as those between the agency and Hillary Clinton, Bill Clinton and the Clinton Foundation, among others, the website reported.

The foundation’s alleged influence on the agency was not spelled out in the lawsuit seeking the records.

But the agency provides economic, development and humanitarian help around the world in support of US foreign policy goals, and the foundation has come under scrutiny about whether big-bucks foreign donors got anything in return for their cash donations.

Despite the IG’s report, Clinton and her surrogates continue to insist she did nothing wrong while acknowledging that her use of the private server was a mistake.