President Lai Ching-te has urged Taiwan's ruling and opposition parties to work together to confront regional challenges.