LONDON — The British government said on Tuesday that it would toughen terrorism sentences and end early release for serious offenders, following through on promises made by Prime Minister Boris Johnson in November after a convicted terrorist who had been automatically released carried out an attack that killed two people near London Bridge.

The attacker, Usman Khan, 28, who was released in December 2018 after serving eight years of a 16-year sentence for his involvement in a bomb plot, began a knife attack while attending an event on prison rehabilitation at Fishmongers’ Hall, a central London conference venue. Wearing a fake explosive vest, he fled over the nearby bridge, and he was shot and killed by the police shortly afterward.

The attack, during the final weeks of a British general election campaign, set off a heated debate over jail sentences for convicted terrorists and their overall reintegration into society.

Under the new legislation, which could be introduced in Parliament this spring, terrorism offenders would serve a minimum of 14 years in prison. The number of probation officers specializing in counterterrorism would be doubled, and the counterterrorist police would receive a 10 percent funding increase, the British Home Office, the government department responsible for policing and national security, said in a statement.