Part of the problem is a lack of alleys, so delivery trucks have to park in the street and block traffic. If zoning required an off-street loading dock area for all buildings it would start to help as new buildings are built. I'm not sure if that's a rule or not.
A much easier solution is to dedicate a space on each block to deliveries only, and make parking a car in it a massive fine/immediate license suspension.
Courtyards are largest where alleyways would be least needed, on residential blocks.
For most blocks where unloading is a problem, courtyards are narrow, uneven spaces that frequently do not run the length of the 'interior' block.
The city would also have to justify reclaiming two lots per block—on either end of the courtyard/alleyway—in a city which already has a housing shortage.