A federal appeals court on Friday ruled in favor of the Obama administration in a dispute over the National Security Agency’s bulk collection of telephone data on hundreds of millions of Americans.

The U.S. Court of Appeals for the District of Columbia Circuit reversed District Judge Richard Leon’s ruling that the program likely violates the Constitution’s ban on unreasonable searches.