US President Joe Biden said he spoke to Chinese President Xi Jinping to discuss China's military activity near Taiwan and both sides agreed to abide by the Taiwan agreement.