President Obama’s legacy is increasingly in legal jeopardy