Jimmy Lai, who is charged with national security offenses, testified that his newspaper “carried a torch to the reality” of people’s desire for freedom in the city.