Pacific Rim is suing the Salvadoran government in an international investment court, one of scores of cases in recent years in which frustrated oil, gas and mining investors, using provisions of trade agreements, have sought to recoup losses from mostly developing countries.