British troops in Iraq and Afghanistan are fighting terrorism on the front line, Tony Blair has said.