US House Speaker Nancy Pelosi's two-day trip to Taiwan had been controversial with Beijing warning the US against the move. China had called the visit "dangerous and stupid" as it announced new economic measures and other sanctions against Taiwan.