The World Snooker Championship will remain at Sheffield's Crucible Theatre until 2045, following a £45m redevelopment deal.