Measure would penalise companies that help Russia’s Gazprom complete pipeline to Germany