A judge ruled that the government had failed to take into account the latest scientific evidence.