Finite-dimensional approximation and control of shear flows