Well I don't really have any insider knowledge but it seems that Republicans didn't want Democrats to have this win therefore didn't pass it in the congress and there was a ton of propaganda against it.
Trump, riding on the wave of propaganda, just called it the worst deal ever only to have something to criticize Obama's foreign policy over.