DHSC to extend US tech firm’s contract for two more years to allow time to line up British companies to replace it