SAN FRANCISCO — A judge has ordered Samsung Electronics Co. to halt sales of its Galaxy 10.1 tablet computer while the court considers Apple's claim that the South Korean tech giant illegally copied the design of the popular iPad.

US District Judge Lucy Koh said Apple Inc.'s lawsuit appeared likely to prevail.

''Apple has established a strong case on the merits,'' Koh said.

Koh had earlier said the two products are ''virtually indistinguishable,'' but she declined in December to take the dramatic step of prohibiting sales of the Galaxy 10.1.

She changed her mind after the US Court of Appeals for the Federal Circuit told Koh to take another look at Apple's request for an injunction, ruling June 19 that it appeared the company had a strong case. The Washington, D.C., court handles most patent appeals.

''Although Samsung has a right to compete, it does not have a right to compete unfairly, by flooding the market with infringing products,'' Koh wrote in her order on Tuesday. She said Apple would be ''irreparably harmed'' if sales of the Galaxy 10.1 continued.

Samsung said it was disappointed with the court's decision.

''We will take necessary legal steps and do not expect the ruling to have a significant impact on our business operations, as we possess a diverse range of Galaxy Tab products,'' it said in a statement.

Koh ordered Apple to post a $2.6 million bond in case it ultimately loses the case.

The ruling is a small part of a much larger patent battle between the two tech giants, who are scheduled to go to trial next month in San Jose.

The two companies are enmeshed in patent disputes around the globe revolving around smartphones and handheld computers.

Try BostonGlobe.com today and get two weeks FREE.