The EU’s top court said the extra leave had to be linked to pregnancy or birth, otherwise, it risks falling foul of the bloc’s gender equality rules.