US President Joe Biden says he and his Chinese counterpart Xi Jinping have agreed to abide by the "Taiwan agreement".