A gay rights group sued the Justice Department on Wednesday for failing to produce hundreds of pages of documents related to a 1953 order signed by President Dwight Eisenhower that empowered federal agencies to investigate and fire employees thought to be gay.

The suit in U.S. District Court accuses the government of conducting an inadequate search for the material and of groundlessly withholding some records on the basis of national security.

Executive Order 10450 allowed broad categories of federal workers, including those with criminal records, drug addiction and “sexual perversion,” to be singled out for scrutiny and termination as threats to national security. Suspicions of homosexuality led to the firings of between 7,000 and 10,000 workers in the 1950s alone, according to a 2014 report from the Merit Systems Protections Board.

“We want to know, and history needs to know, how this thing was administered and how it was enforced, and what was the dynamic inside the Justice Department and the FBI driving” it, said Charles Francis, president of the Mattachine Society. The gay rights research and education organization has sought to obtain the records since 2013.

“This is an issue of public importance — how your government treats people who work for it, how your government has historically targeted people based on their LGBT status and destroyed their lives,” said Paul Thompson, a partner at McDermott Will and Emery LLP, the law firm that filed the Freedom of Information Act suit. “People are paying attention to this right now.”

Eisenhower’s order came at a time of widespread anti-gay discrimination authorized at the highest levels of government, including a 1950 Senate subcommittee report that concluded that gays were unsuitable as federal employees.

Under a “sex deviate program” put in place by FBI Director J. Edgar Hoover, agents were directed to “completely and fully” investigate anything about a prospective employee’s sexual orientation developed during background checks. A May 1950 FBI bulletin to local police agencies told officers to make a notation on arrest fingerprint cards if anyone they arrested on suspicion of being a “sex deviate” worked for the federal government. The FBI collected those cards.

The executive order went a step further by effectively approving of the investigation and firing of federal workers believed to be gay.