Judge rules in favor of Bloomberg LP — the company’s female employees claimed it had discriminated against them in pay and promotions after they took maternity leave.