Nancy Pelosi, the former US House speaker, attended President Donald Trump's Tuesday joint address to Congress.