Obama's order was to withdraw the visa waiver program for those 7 countries. Citizens of those countries could still apply for a visa and then enter the US. Trump's order banned legal and vetted immigrants, a ban which initially included even lawful permanent residents. The two aren't even remotely comparable.