Adiabatic feedback control of Hamiltonian systems