Judge rules to extend stay for more than a thousand Iraqi immigrants