A £41.9 million boost will go towards bringing gigabit broadband to 23,800 more homes and businesses.