Joe Arpaio's illegal-immigration crackdown made him a polarizing figure and an early ally of President Trump.