Medical groups approve judge's ruling