I think Obama's genuinely frustrated at his party's ideological base. He thinks he's doing the practical, pragmatic thing from a policy standpoint and that they should therefore all get behind it. What he doesn't seem to get is how the politics plays out and that he's putting himself at serious risk of a primary, which would be very bad news if he wants to run for re-election.
Who would challenge him? https://uselectionatlas.org/FORUM/index.php?topic=129151.0(Not that Obama would need to take that challenge much more seriously than an Alvin Greene campaign.)