WASHINGTON — A Federal District Court judge on Friday ordered the public disclosure of 28 classified military videotapes showing the forced cell extraction and forced feeding of a hunger-striking Guantánamo Bay detainee, rejecting the Obama administration’s arguments that making the videos public would endanger national security.

The New York Times and 15 other news organizations had petitioned to unseal the videos. In a 28-page opinion, Judge Gladys Kessler of the United States Court for the District of Columbia cited the First Amendment in overriding the government’s arguments for keeping them secret, most of which, she said, were “unacceptably vague, speculative,” lacking specificity or “just plain implausible.”

Judge Kessler issued the ruling one day after a related decision to keep open to the public most of an evidentiary hearing scheduled next week about force-feeding procedures. The Obama administration had sought to close the proceeding, which will amount to a miniature trial over whether the practices are humane.

It is not clear when the videos will become public. Judge Kessler said the military, before releasing them, may blur the faces of guards and nurses and mask their voices. The Justice Department may also appeal her decision to the Court of Appeals for the District of Columbia.