A lawsuit launched against three US retailers by victims of the Rana Plaza building collapse in Bangladesh has been dismissed largely on technicalities.