Why Barack Obama's legacy could be sunk by Donald Trump