D-modules from the b-function and Hamiltonian flow