A federal judge ruled that ICE cannot enforce newly adopted policies that require lawmakers to provide seven days notice before visiting detention facilities.