A Lancashire council is set to spend £500,000 to stop debris falling from an empty town centre tower onto the streets below.