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. Unable to work with a Republican-led Congress for most of his presidency, Mr. Obama did what he could…