Work to save a dome from collapsing at the Royal Pavilion in Brighton has been completed.