Molecular outflows and extended cold gas in and around high-redshift galaxies