President Tsai Ing-wen pledged to boost Taiwan’s defenses in a speech to mark the country’s National Day.