Incoming legislation will ban donations from British firms that are controlled by foreign parent companies