A contract shall not be made for the rent of a building, or part of a building, to be used for the purposes of the Federal Government in the District of Columbia until Congress enacts an appropriation for the rent. This section is deemed to be notice to all contractors or lessors of the building or a part of the building.