Judge backs NASA lab in work discrimination case