Your timing sounds just about perfect to me. The third week of September through the first week of October is one of my favourite times in Italy (and is the time of year I always recommend to clients). The worst of the summer heat has gone and the crowds have thinned once Italian and European schools are back. You also get the grape harvest under way, which makes it a lovely time to visit wineries in places like Montefalco in Umbria or around the Verdicchio and Rosso Conero areas in Le Marche. Truffle season is also starting, so menus begin to shift in that direction.
The only thing I’d be aware of is that going later into October brings more rain and noticeably shorter days. That matters more when you’re driving country roads and want to get to your next hilltown before dark. Earlier in September is warmer still, but busier.
On the order, I’d actually go to Le Marche first. If you want any time on the coast (the Conero Riviera around Sirolo and Portonovo is beautiful), it’s better to be there while it’s still warm, because the beach places start winding down as the season ends. Le Marche is also the longer drive from Rome, so it makes sense to get that leg done while you’re fresh. Then you can work your way back west through Umbria. That puts you only a couple of hours from Rome for your flight home, and you get Umbria in early October, which suits it beautifully.
One practical tip: pick up your car at the airport rather than in central Rome, and keep an eye out for ZTL (limited traffic zone) signs in the old town centres. The fines can follow you home months later!
Le Marche is a wonderful choice. It still feels much less discovered than its neighbours, and three weeks gives you time to really enjoy both regions without rushing.