LOS ANGELES — A federal appeals court in California on Monday allowed President Trump’s latest travel restrictions to partly take effect, ruling that the government can bar entry to people who come from six majority-Muslim countries and who lack ties to the United States, thus handing the administration a momentary victory.

In a two-paragraph order, a panel of three judges from the United States Court of Appeals for the Ninth Circuit in San Francisco ruled on the administration’s request to block a lower court’s decision, from a federal judge in Hawaii, that prevented the latest travel policy from being implemented.

The appeals panel on Monday upheld that ruling for people with a “bona fide relationship” with close family or an entity in the United States, like a university or company. But the court blocked the lower court’s decision for people from the six countries without such ties, meaning they can now be kept from entering the United States.

The restrictions will apply to travelers from Chad, Iran, Libya, Somalia, Syria and Yemen. The latest ban also blocks travel by certain Venezuelan government officials and most North Koreans; courts have not stopped the administration from enacting the restrictions on those countries.