Isn't by definition a new law legal (assuming it isn't against a constitution or any higher law)? Is the only threshold that it would not cause financial harm if that is the case most laws should be illegal as they all cause financial harm to someone.
Because it violates the Treaty on the Functioning of Europe. Treaties take precedence over parliamentary laws. That's why they're so dangerous and shouldn't be negotiated in secret.