Federal judge grants preliminary injunction on state curfew policy