In a ruling late Monday, Jon S. Tigar of the U.S. District Court in San Francisco issued a temporary restraining order preventing enforcement of the policy, which was announced Nov. 9.