The US government began leasing / renting properties years ago. Most of your federal buildings today are not owned by the federal government.
How do they enforce a ban on guns when they don’t even own the property?
With federal agents and police.
Condition of signed lease?