Gently washing the head with plain water falls under the basic permission to bathe. Washing with the substance explicitly named by al-Quduri falls under the special restriction regarding khiṭmī.
The sentence should not automatically be applied unchanged to every contemporary soap or shampoo; ingredient and practical details require separate assessment.