The federal government had asked for nearly two decades of data in a gender equality case. A judge called that “unreasonable” and “unduly burdensome.”