The government is examining new powers to deport or exclude from Britain foreigners suspected as potential terrorists and is prepared to pass legislation to amend the Human Rights Act.