The mayor said companies should think “very carefully” before deciding to reduce their office space