US judge blocks effort to end immigrant protections