The European parliament is expected to fight off attempts by France and other EU member states to introduce controversial laws that would allow spyware to be inserted on journalists’ phones on the grounds of national security.