US House Speaker Paul Ryan says it was 'prudent' for President-elect Donald Trump to take a 'congratulatory' phone call from Taiwan's leader.