WASHINGTON—The U.S. International Trade Commission on Friday ordered a ban on the import and sale of some Samsung Electronics Co. mobile devices after finding they infringed on two Apple Inc. patents.

The ruling could put pressure on the Obama administration, which only a few days earlier took the unusual step of vetoing an ITC ruling in favor of Samsung that would have barred the sale of some older Apple iPhones and iPads.

The...