A judge has ruled that officials asked for too much info.