Spectral methods for the Navier-Stokes equations with one infinite and two periodic directions