A Spectral Approach for Learning Spatiotemporal Neural Differential Equations