The president asserted that Xi and his inner circle had “openly said” they would not act against Taiwan while he was in office, “because they know the consequences.”