[Ni(CN)4]2− is square planar because CN is a strong field ligand. In the presence of this ligand, electrons pair up in 3d orbitals and it is undergoing dsp2 hybridization. So it is in square planar geometry while [Ni(CO)4] undergoes sp3 hybridization and so it has a tetrahedral geometry.