You are reading the letter of the treaties but not their application.
The EU Parliament successfully leverages its powers in all sorts of ways. Simply stated: Council, Commission and Parliament have to work together, or nothing moves. Each element can block the others. This means that each element has an incentive to actually work with the others and give them what they want, to have any hope of "bringing home" something of what it wants.
If MEPs want something badly enough, they will get it, because otherwise they'll start sabotaging stuff Council (i.e. national governments) and Commission (the bureaucratic machine) care about, by wielding their veto powers and their electoral mandate.
Votes like this might not have an effect today, but they are part of a conversation that The Powers That Be (the Council) have to participate in. It states a political will that has to be somehow accomodated into the agenda, and it grants political cover for the Commission to put forward actual directives that the Council are not particularly interested in. It's basically like getting second base.