A lawyer who has defended people charged over the January 6, 2021 attack on the US Capitol is joining Donald Trump's White House legal team.