Democrats are attacking President Trump for “dismantling” President Obama’s legacy on everything from Obamacare subsidies to immigration amnesty, but nobody knew better than Mr. Obama how vulnerable his go-it-alone agenda would be if Mr. Trump won the election.