yes, NuGet XDT transformation feature does support the use of solution folders and can also transform general XMLs.
Just place the settings.xml.install.xdt and settings.xml.uninstall.xdt files in the same folder structure (as your target folder structure), under the Content folder of your package.