Indeed, in his first two years, Obama had a super majority in Congress, which pretty much allowed him to do whatever he wanted - without having to build any kind of consensus or negotiation with the then-minority party. Dodd-Frank and Obamacare are two bastard children of that era. Without having built such a consensus, there was no foundation upon which his ultra-liberal policies could withstand political winds blowing in the other direction. And that's where Trump comes in.
Fueled by a raging resentment of not just the the liberalism but the exclusion from the process (remember the "nuclear option" on confirmations?), conservatives fought back with torches and pitchforks, and, in desperation, selected Trump. Sure enough, the Trump machine rolled to victory, and now is rolling back Obama's illegitimate policies at every opportunity.
Payback's a bitch.