Warm molecular and ionized gas kinematics in the type-2 quasar J0945+1737