Advocacy groups 'appalled' by ruling blocking people from Iran, Libya, Somalia, Syria and Yemen from entering US.