You’ll be fine. As others have said above, we all ran mid-width tyres on 17mm-19mm rims for many years before wider rims became a thing. I’d personally stick to 2.25-2.3 tyres on 22.5mm internals though.
I paid £450 for a set of DT Swiss XM1501 Spline wheels earlier last year (240sp hubs, DT spokes and 25mm internal rims) so sounds like quite a bargain you’ve found there. I’d pull the trigger, DT factory wheels are awesome. I use mine for general riding (XC, trails).
One thing to note is that if you want to go wider in the future you can get those hubs rebuilt with wider DT rims, or any other rim you may fancy, so don’t feel that you are stuck with that particular width. A pair of 240 hubs alone would cost you £400ish usually.