Gateway Hotel spared demolition, owners ordered to secure and fix