Joe Biden says US would defend Taiwan if attacked by China