A federal judge in Boston has issued a preliminary injunction to stop new immigration rules that would have restricted the length of stay for foreign…