An office space deal threatens to leave the city on the hook for the U.N.’s financial travails.