SAN FRANCISCO—A Malaysian architecture professor has won her legal challenge seeking her name stricken from the U.S. government's no-fly list.

A federal judge in San Francisco said Tuesday in a brief court filing that the government's inclusion of Rahinah Ibrahim on the list was a mistake and ordered her name removed from the list. The two-page filing released publicly was only a notice that the former Stanford University doctoral candidate had prevailed in her eight-year legal odyssey to clear her name. U.S. District Judge William Alsup kept his detailed ruling under seal so the 9th U.S. Circuit Court of Appeals can rule on the government's appeal to toss out the lawsuit.

The government argues that national security interests could be jeopardized if it's forced to defend the lawsuit in open court.