European Union’s two biggest economies have agreed to push for measures targeting companies that support Russia’s war.