The judge wrote that neither the Constitution nor federal immigration law gave the president the authority to “to adopt an alternative immigration system.”