UK health secretary says deal will end ‘8am scramble’ to see a doctor and free up phone lines