The spectral action for Moyal planes